[openssl-dev] [openssl.org #4260] [PATCH] Update the return value documented for X509_REQ_sign and X509_sign

Laetitia Baudoin via RT rt at openssl.org
Wed Jan 20 23:25:35 UTC 2016


X509_REQ_sign, X509_sign and similar functions return the signature length
instead '1' as documented.

Justification:
Both function return whatever ASN1_item_sign returns:
https://github.com/openssl/openssl/blob/master/crypto/x509/x_all.c#L95
https://github.com/openssl/openssl/blob/master/crypto/x509/x_all.c#L117

And ASN1_item_sign returns the output length:
https://github.com/openssl/openssl/blob/master/crypto/asn1/a_sign.c#L321

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x509_sign_doc.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160120/da8da3e4/attachment.bin>


More information about the openssl-dev mailing list