Re: How to convert a buffer to an intern structure???

2004-08-03 Thread Juan Segarra
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); ---

How to convert a buffer to an intern structure???

2004-08-02 Thread Carlos Roberto Zainos H
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

RE: How to convert a buffer to an intern structure???

2004-08-02 Thread sakthi.subramaniam
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]