Branch: Tag:

2008-01-05

2008-01-05 14:44:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed some warnings.

Rev: lib/modules/Crypto.pmod/RSA.pike:1.9
Rev: lib/modules/SSL.pmod/handshake.pike:1.60

1: - /* $Id: RSA.pike,v 1.8 2004/04/14 19:27:01 nilsson Exp $ + /* $Id: RSA.pike,v 1.9 2008/01/05 14:33:57 grubba Exp $    *    * Follow the PKCS#1 standard for padding and encryption.    */
235: Inside #if constant(Gmp) && constant(Gmp.mpz) && constant(Crypto.Hash)
  {    string s = Crypto.SHA1->hash(message);    s = sprintf("%c%s%c%s", 4, "sha1", sizeof(s), s); -  return cooked_sign(s); +  return cooked_sign(s);r;   }      //! @fixme
253: Inside #if constant(Gmp) && constant(Gmp.mpz) && constant(Crypto.Hash)
  {    string s = Crypto.MD5->hash(message);    s = "0 0\14\6\10*\x86H\x86\xf7\15\2\5\5\0\4\20"+s; -  return cooked_sign(s); +  return cooked_sign(s);r;   }      //! @fixme