You can use a memory bio and then the appropiate PEM I/O function.
Something like:
BIO *bioMem;
char *keyBuffer;
X509 *cert;
/* Read de buffer (bla,bla,bla) :-) */
/* And now... */
bioMem =3D BIO_new_mem_buf(keyBuffer, keyBufferLen);
cert =3D PEM_read_bio_X509(bioMem,NULL,NULL,NULL);
---
Hi guys!!!
I'm working in a Crypto-OpenSSL based Project generating and mannaging X509 cert's. I have a little problem because I'm using an Oracle DB like repository.The cert's arestored in PEM format in the DB (-BEGIN . END-), the connection between my app and the server is ODBC
Title: Message
Hi.,
Use d2i interfaces
For
any object...
d2i_OBJNAME(OBJTYPE *obj, char *pp, long length)
for
example
to get
RSA key from buffer
RSA
*rsa
rsa =
d2i_RSAPublicKey(NULL, buf, len)..
Hope
it helps..
-Original Message-From:
[EMAIL PROTECTED]