I'm doing it:
FILE* f_cert = fopen("cert", "rb");
X509* x_cert = NULL;
PEM_read_X509(f_cert, &x_cert, NULL, NULL);
...
Now I want to read this cert file myself and use PEM_read_bio_X509 instead of PEM_read_X509. So, if I already have these variables:
const char cert_data[] = {....};
const int sert_data_size = 123;
How do I initialize a BIO, pass it to PEM_read_bio_X509 and release a temporary biography?
source
share