diff options
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/x509.c b/apps/x509.c index 294fc69573..1dad6363de 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -1038,8 +1038,7 @@ bad: ah.data=(char *)x; ah.meth=X509_asn1_meth(); - /* no macro for this one yet */ - i=ASN1_i2d_bio(i2d_ASN1_HEADER,out,(unsigned char *)&ah); + i=ASN1_i2d_bio_of(ASN1_HEADER,i2d_ASN1_HEADER,out,&ah); } else { BIO_printf(bio_err,"bad output format specified for outfile\n"); |