Your message dated Sat, 22 Jul 2006 13:29:50 +0100
with message-id <[EMAIL PROTECTED]>
and subject line M2Crypto 0.16
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: m2crypto
Version: 0.13-2
Severity: normal
I do:
Python 2.3.3 (#2, May 1 2004, 06:12:12)
[GCC 3.3.3 (Debian 20040401)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from M2Crypto import RSA
>>> rsa=RSA.gen_key(1024,65537,lambda p,n : None)
>>> rsa.save_pub_key('qqq4')
1
>>>
file qqq4 look like this:
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgfzn09ZfRXmVCMcU0QYcf1AV3
hR3uLVd4ka9bocYB1vvddmVFcbLKEgicgU4zFVruDejhr5f+1LPWqHTTVzCkVj3+
6OTKCqrPFj5yKZEiklgaOCl8bhXz3BPPF9/0kc8Q+Xb8sWbQts0n0twBdY0hWpl5
UY/2tcVg8Y+to6pkqwIDAQAB
-----END PUBLIC KEY-----
instead of another one ( generated by RSA_generate_key(1024,65537,...)
and saved by PEM_write_bio_RSAPublicKey() ).
It looks like:
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAOUiG5s1pOgiqfbT0Eqp1v9LVcarMFUff26T90mH5eErg6VNj9CS6WYh
G9bwFw8ef0RCf0CmwcHt2HbOHare7oYJMQsdlbdqwFCo51h4b1y4bhysJKCAOdeh
SwQBQQTGQvPAVllwQMjisLTk5c55F3FiceBRo4xCnDt1WDZ4EokXAgMBAAE=
-----END RSA PUBLIC KEY------
I've got a patch ( recompiled with patch it works fine - i can load key
)
Just change file SWIG/_rsa.i to:
line 64:
return PEM_read_bio_RSAPublicKey(f, NULL, NULL, NULL);
line 70:
return PEM_write_bio_RSAPublicKey(f, rsa);
Thank you
Sedinin
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.KOI8-R (ignored: LC_ALL set to
ru_RU.KOI8-R)
Versions of packages m2crypto depends on:
ii libc6 2.3.2.ds1-12 GNU C Library: Shared libraries an
ii libssl0.9.7 0.9.7d-1 SSL shared libraries
ii python2.3 2.3.3-7 An interactive high-level object-o
-- no debconf information
--- m2crypto-0.13.orig/SWIG/_rsa.i
+++ m2crypto-0.13/SWIG/_rsa.i
@@ -61,13 +61,13 @@
RSA *rsa_read_pub_key(BIO *f) {
/* return PEM_read_bio_RSAPublicKey(f, NULL, NULL, NULL);
Broken by incompatible change introduced in OpenSSL 0.9.6. */
- return PEM_read_bio_RSA_PUBKEY(f, NULL, NULL, NULL);
+ return PEM_read_bio_RSAPublicKey(f, NULL, NULL, NULL);
}
int rsa_write_pub_key(RSA *rsa, BIO *f) {
/* return PEM_write_bio_RSAPublicKey(f, rsa);
Broken by incompatible change introduced in OpenSSL 0.9.6. */
- return PEM_write_bio_RSA_PUBKEY(f, rsa);
+ return PEM_write_bio_RSAPublicKey(f, rsa);
}
PyObject *rsa_get_e(RSA *rsa) {
--- End Message ---
--- Begin Message ---
Hello,
I've just uploaded m2crypto_0.16-1 to the incoming queue. I believe all
outstanding problems have been resolved in this version, so I'm
closing these bugs.
Regards,
Dima.
--- End Message ---