Branch: Tag:

2014-07-05

2014-07-05 10:05:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Crypto.RSA: Reenable the generate_key() compat function.

Also fixes some related warnings.

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