RE: Queries for openssl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> On Behalf Of Kumar Mishra, Sanjeev
Sent: Wednesday, November 24, 2021 6:37 AM
To: openssl-users@xxxxxxxxxxx
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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux