Branch: Tag:

2013-12-04

2013-12-04 11:10:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.RSA: Added some backward compat.

The old Crypto.RSA()->generate_key() API is now back, and marked as deprecated.

Fixed broken use of Standards.PKCS.Certificate.build_distinguished_name()
in Tools.X509.make_selfsigned_{rsa,dsa}_certificate().

222:      #endif    + //! Compatibility with Pike 7.8. + variant __deprecated__ this_program generate_key(int(128..) bits, +  function rnd) + { +  function old_rnd = random; +  random = rnd; +  this_program res = generate_key(bits); +  random = old_rnd; +  return res; + }      //   // --- PKCS methods