Queries for openssl
Dr. Matthias St. Pierre
Matthias.St.Pierre at ncp-e.com
Wed Nov 24 08:30:57 UTC 2021
Hi,
you can find this sort of information in the manual pages, either on you UNIX*SH operating system,
or online on our website:
HTH,
Matthias
https://www.openssl.org/docs/man1.1.1/man3/PEM_read_bio_X509.html:
RETURN VALUES
The read routines return either a pointer to the structure read or NULL if an error occurred.
https://www.openssl.org/docs/man1.1.1/man3/d2i_X509_bio.html
RETURN VALUES
d2i_TYPE(), d2i_TYPE_bio() and d2i_TYPE_fp() return a valid TYPE structure or NULL if an error occurs. If the "reuse" capability has been used with a valid structure being passed in via a, then the object is freed in the event of error and *a is set to NULL.
i2d_TYPE() returns the number of bytes successfully encoded or a negative value if an error occurs.
i2d_TYPE_bio() and i2d_TYPE_fp() return 1 for success and 0 if an error occurs.
From: openssl-users <openssl-users-bounces at openssl.org> On Behalf Of Kumar Mishra, Sanjeev
Sent: Wednesday, November 24, 2021 6:37 AM
To: openssl-users at openssl.org
Subject: Queries for openssl
Hi ,
I have two queries to be asked.
1. Is there any Api which is used to convert certificates from PEM format to DER format?
2. Does these two Api's return same value ?( These Api's give NULL when they are failing, I need to know if they return same value in success case)
3. d2i_X509_bio
4. PEM_read_bio_X509
Thanks,
Sanjeev
Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20211124/d9e26e72/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7448 bytes
Desc: not available
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20211124/d9e26e72/attachment-0001.bin>
More information about the openssl-users
mailing list