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().

209:    int serial =    (int)Gmp.bignum(Standards.UUID.make_version1(-1)->encode(), 256);    -  Sequence dn = Certificate.build_distinguished_name(@name); +  Sequence dn = Certificate.build_distinguished_name(name);       return dsa_sign_key(dn, dsa, dn, DSA.public_key(dsa),    serial, ttl, extensions);
281:    int serial =    (int)Gmp.bignum(Standards.UUID.make_version1(-1)->encode(), 256);    -  Sequence dn = Certificate.build_distinguished_name(@name); +  Sequence dn = Certificate.build_distinguished_name(name);       return rsa_sign_key(dn, rsa, dn, RSA.public_key(rsa),    serial, ttl, extensions);