66 #ifndef OPENSSL_NO_RSA
69 #ifndef OPENSSL_NO_DSA
73 #ifndef OPENSSL_NO_FP_API
85 ret=PEM_X509_INFO_read_bio(b,sk,cb,u);
94 char *name=NULL,*header=NULL;
96 unsigned char *
data=NULL;
97 const unsigned char *
p;
101 unsigned int i,raw,ptype;
102 d2i_of_void *
d2i = 0;
135 d2i=(
D2I_OF(
void))d2i_X509;
136 if (xi->
x509 != NULL)
147 if (xi->
x509 != NULL)
157 d2i=(
D2I_OF(
void))d2i_X509_CRL;
167 #ifndef OPENSSL_NO_RSA
183 if ((
int)strlen(header) > 10)
188 #ifndef OPENSSL_NO_DSA
205 if ((
int)strlen(header) > 10)
210 #ifndef OPENSSL_NO_EC
227 if ((
int)strlen(header) > 10)
256 else if (
d2i(pp,&p,len) == NULL)
285 if ((xi->
x509 != NULL) || (xi->
crl != NULL) ||
318 unsigned char *data=NULL;
319 const char *objstr=NULL;
321 unsigned char *iv=NULL;
374 if (i <= 0)
goto err;
379 #ifndef OPENSSL_NO_RSA
381 if (PEM_write_bio_RSAPrivateKey(bp,
383 enc,kstr,klen,cb,u)<=0)
390 if ((xi->
x509 != NULL) && (PEM_write_bio_X509(bp,xi->
x509) <= 0))