R: x509 read from a buf

1999-05-14 Thread Andrea e Luca Giacobazzi
Use X509* d2i_X509(..), look in /crypto/x509/x509.h -Messaggio originale- Da: gang cao [EMAIL PROTECTED] A: [EMAIL PROTECTED] [EMAIL PROTECTED] Data: mercoledì 12 maggio 1999 15.17 Oggetto: x509 read from a buf hi all, in x509.c , load_cert(char * file , int format) read certificate

x509 read from a buf

1999-05-12 Thread gang cao
hi all, in x509.c , load_cert(char * file , int format) read certificate from a file . i need read a certificate from a buf ( unsigned char * ), a function like static X509 *load_cert(unsigned char *data , int len , int format ) len is the length of data. so i change the following : if

Re: x509 read from a buf

1999-05-12 Thread vf
gang cao wrote: hi all, in x509.c , load_cert(char * file , int format) read certificate from a file . i need read a certificate from a buf ( unsigned char * ), a function like static X509 *load_cert(unsigned char *data , int len , int format ) len is the length of data. d2i_X509()

Re: x509 read from a buf

1999-05-12 Thread Dr Stephen Henson
gang cao wrote: hi all, in x509.c , load_cert(char * file , int format) read certificate from a file . i need read a certificate from a buf ( unsigned char * ), a function like static X509 *load_cert(unsigned char *data , int len , int format ) len is the length of data. so i change

Re: x509 read from a buf

1999-05-12 Thread gang cao
d2i_X509 can read certificate from a X509 structure(PEM) to a char * buffer (DER) and i need read certificate from a char * buffer (PEM) to a X509 structure (PEM) [EMAIL PROTECTED] wrote: gang cao wrote: hi all, in x509.c , load_cert(char * file , int format) read certificate from a