Greetings!

The problem occurs with cms resign command (openssl-1.0.0e).

$ openssl cms -sign -binary -inform der -inkey U_cms_1/seckey.pem
-signer U_cms_1/cert.pem -in signed_cms2.dat -out
signed_cms2_1_det.msg -outform smime

$ openssl cms -resign -binary -inkey U_cms_2/seckey.pem -signer
U_cms_2/cert.pem -in signed_cms2_1_det.msg -inform smime -out
signed_cms2_2_det.msg -outform smime

an error occurs:

3078342808:error:2E096085:CMS routines:CMS_SIGNERINFO_CONTENT_SIGN:no
private key:cms_sd.c:629

with memory leaks

[19:30:11]  2650 file=buffer.c, line=177, thread=3075004568,
number=18, address=092F1118
[19:30:11]  2656 file=pmeth_lib.c, line=202, thread=3075004568,
number=108, address=092F1390
[19:30:11]  2655 file=pmeth_lib.c, line=202, thread=3075004568,
number=108, address=092F12E8
[19:30:11]  4137 file=bio_lib.c, line=70, thread=3075004568,
number=64, address=092FF6C8
[19:30:11]  2638 file=stack.c, line=125, thread=3075004568, number=20,
address=092F0888
[19:30:11]  2643 file=stack.c, line=127, thread=3075004568, number=16,
address=092F0A58
[19:30:11]  2654 file=buffer.c, line=177, thread=3075004568, number=9,
address=092F12A0
[19:30:11]  4138 file=digest.c, line=127, thread=3075004568,
number=24, address=092FDCA8
[19:30:11]  2647 file=buffer.c, line=177, thread=3075004568,
number=16, address=092F0FE0
[19:30:11]  2651 file=buffer.c, line=177, thread=3075004568, number=9,
address=092F1168
[19:30:11]  2652 file=ameth_lib.c, line=290, thread=3075004568,
number=96, address=092F11B0
[19:30:11]  2657 file=pmeth_lib.c, line=202, thread=3075004568,
number=108, address=092F1438
[19:30:11]  2637 file=stack.c, line=127, thread=3075004568, number=16,
address=092F0838
[19:30:11]  2635 file=eng_dyn.c, line=189, thread=3075004568,
number=44, address=092F0780
[19:30:11]  2633 file=eng_lib.c, line=68, thread=3075004568,
number=112, address=092F0680
[19:30:11]  2642 file=stack.c, line=125, thread=3075004568, number=20,
address=092F0A08
[19:30:11]  2639 file=stack.c, line=127, thread=3075004568, number=16,
address=092F08D8
[19:30:11]  2653 file=buffer.c, line=177, thread=3075004568,
number=18, address=092F1250
[19:30:11]  2645 file=dso_dlfcn.c, line=385, thread=3075004568,
number=57, address=092F0B20
[19:30:11]  2644 file=dso_lib.c, line=380, thread=3075004568,
number=57, address=092F0AA8
[19:30:11]  2649 file=ameth_lib.c, line=290, thread=3075004568,
number=96, address=092F1078
[19:30:11]  2636 file=stack.c, line=125, thread=3075004568, number=20,
address=092F07E8
[19:30:11]  2648 file=buffer.c, line=177, thread=3075004568, number=7,
address=092F1030
[19:30:11]  4139 file=digest.c, line=206, thread=3075004568,
number=4240, address=092FE440
[19:30:11]  2641 file=dso_lib.c, line=103, thread=3075004568,
number=40, address=092F09A0
[19:30:11]  2640 file=buffer.c, line=177, thread=3075004568,
number=57, address=092F0928
[19:30:11]  2646 file=ameth_lib.c, line=290, thread=3075004568,
number=96, address=092F0F40

The smime command with the same arguments does not cause problems.

The problem can be reproduced both with Gost and RSA algorythms.

-- 
SY, Dmitry Belyavsky

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to