|
|
@@ -125,7 +125,7 @@ extern "C" { |
|
|
|
#define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \ |
|
|
|
OPENSSL_EXPORT type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ |
|
|
|
{ \ |
|
|
|
return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \ |
|
|
|
return (type *)PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \ |
|
|
|
} |
|
|
|
|
|
|
|
#define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \ |
|
|
@@ -161,7 +161,7 @@ OPENSSL_EXPORT int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \ |
|
|
|
#define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \ |
|
|
|
OPENSSL_EXPORT type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ |
|
|
|
{ \ |
|
|
|
return PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \ |
|
|
|
return (type *)PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \ |
|
|
|
} |
|
|
|
|
|
|
|
#define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \ |
|
|
|