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
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
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()
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
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