patch-src_osirismd_md_control_c 727 B

12345678910111213141516
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- osiris-4.2.3.orig/src/osirismd/md_control.c 2006-12-05 13:02:48.000000000 +0100
  3. +++ osiris-4.2.3/src/osirismd/md_control.c 2009-05-10 21:28:06.000000000 +0200
  4. @@ -3259,9 +3259,9 @@ osi_bool generate_session_key_hash( unsi
  5. int index;
  6. char checksum[41];
  7. - SHA_Init( &context );
  8. - SHA_Update( &context, key, (unsigned long)keysize );
  9. - SHA_Final( &( digest[0] ), &context );
  10. + SHA1_Init( &context );
  11. + SHA1_Update( &context, key, (unsigned long)keysize );
  12. + SHA1_Final( &( digest[0] ), &context );
  13. for ( index = 0; index < SHA_DIGEST_LENGTH; index++ )
  14. {