s/mime signature not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
m2crypto (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Given the following code:
#!/usr/bin/python
from M2Crypto import BIO, Rand, SMIME
_text = 'a sign of our times'
def sign(message):
buf = BIO.MemoryBuffe
Rand.
s = SMIME.SMIME()
s.load_
p7 = s.sign(buf)
Rand.
out = BIO.MemoryBuffer()
s.write(out, p7, BIO.MemoryBuffe
return out.read()
print '2>>', sign(_text)
On Ubuntu 10.04.4 I got the following result (which is what I expect):
2>> MIME-Version: 1.0
Content-Type: multipart/signed; protocol=
This is an S/MIME signed message
------0B8377C13
a sign of our times
------0B8377C13
Content-Type: application/
Content-
Content-
MIIE8wYJKoZIhvc
DQEHAaAVBBNhIHN
DQYJKoZIhvcNAQE
MRQwEgYDVQQLEwt
aWNhdGUgTWFzdGV
MDA5MTAwOTUxMzB
VQQKEwhNMkNyeXB
Fg5uZ3BzQHBvc3Q
81e86E2VnOU84AK
GjXKxYtGeXwJAgM
Fh1PcGVuU1NMIEd
JmLAVTVo49JtzNs
OAGhf6R9MHsxCzA
CxMLTTJDcnlwdG8
c3RlcjEdMBsGCSq
AQEEBQADgYEAO/
32TXGGXXUgyqLMP
MT1uiV8KL+
lgIBATCBgDB7MQs
BAsTC00yQ3J5cHR
YXN0ZXIxHTAbBgk
BQCggbEwGAYJKoZ
MTMwNzIxMTYyNjE
/eIwUgYJKoZIhvc
DQYIKoZIhvcNAwI
AQEBBQAEQJgZxVl
FgaDnVVw0dYPhsU
------0B8377C13
However, on 12.04.2, I got this (that is, the signature is missing):
2>> MIME-Version: 1.0
Content-Type: multipart/signed; protocol=
This is an S/MIME signed message
------FB1930A6C
a sign of our times
(and that's it)
Version of python-m2crypto is 0.21.1-2ubuntu2.
Changed in m2crypto (Ubuntu): | |
importance: | Undecided → Medium |