Hallo, I discoverd this when I wanted to verify a signature. The error message was the following:
Error reading S/MIME message 966754:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:150: 966754:error:21078082:PKCS7 routines:B64_READ_PKCS7:decode error:pk7_mime.c:140: 966754:error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse error:pk7_mime.c:373: I tested it with the version 0.9.7f and 0.9.8i. The input has valid asn.1 format. The signed content looked like this: Content-Type: application/pkcs7-mime; name=smime.p7m; smime-type=signed-data Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7m d01EQXdJRzRnQ2pBd01EQXdNREE1TlRFZ01EQXcNCk1EQWdiaUFLTURBd01EQXdNamN6TVNB d01E QXdNQ0J1SUFvd01EQXdNREF5TnpjMklEQXdNREF3SUc0Z0NuUnlZV2xzWlhJS1BEd3YNClNV UWdX end4WmpKbE9EUTRaRE13WkRJelkyWXlOV00wTm1ZM01HVTRPRFUyWkRSbFlqNDhNV1l5WlRn ME9H UXpNR1F5TTJObU1qVmoNCk5EWm1OekJsT0RnMU5tUTBaV0krWFM5U2IyOTBJREV3SURBZ1Vp OVRh WHBsSURFeUwwbHVabThnTVRFZ01DQlNQajRLYzNSaGNuUjQNCmNtVm1Dakk1TXpFS0pTVkZU MFlLBIIE AA0KLS0tLS0tPV9QYXJ0XzE0NjExXzEwODgzNDMxLjEyMjM1NzQ2OTcyMzENCkNvbnRlbnQt VHlw ZTogYXBwbGljYXRpb24vb2N0ZXQtc3RyZWFtOyANCgluYW1lPWUtZGVjX0ltcG9ydF9FTF9F RDkw MjAzNzM0XzE0NDAzNTlfMV85MDIwXzEucGRmDQpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5n OiBi YXNlNjQNCkNvbnRlbnQtRGlzcG9zaXRpb246IGF0dGFjaG1lbnQ7IA0KCWZpbGVuYW1lPWUt ZGVj As you can see, one line is too large (BIIE). When I verified (0.9.8i) the asn.1 format, then I got the following error message: Error in encoding 600:error:0D07209B:asn1 encoding routines:ASN1_get_object_:too long:.\crypto\asn1\asn1_lib.c:142: Error in asn1parse Then I corrected the format of the signed content by myself (all lines the same length). After the correction I was able to verfiy the format without any errors an got the unsigned mail content. Does anybody know this problem? Is there a solution? Regards Richard