If we declare a function, like d2i_TS_MSG_IMPRINT_bio(), we'd better
authorRichard Levitte <levitte@openssl.org>
Fri, 31 Mar 2006 12:25:24 +0000 (12:25 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 31 Mar 2006 12:25:24 +0000 (12:25 +0000)
*define* it too, or things like shared libraries might be a bit sad.

crypto/ts/ts_asn1.c

index f68650595b20939a22b071d8ba131ed64a2a3ec5..86d78dc47225a10b3bc7a09431bd76db88c372b7 100644 (file)
@@ -67,6 +67,11 @@ ASN1_SEQUENCE(TS_MSG_IMPRINT) = {
 IMPLEMENT_ASN1_FUNCTIONS_const(TS_MSG_IMPRINT)
 IMPLEMENT_ASN1_DUP_FUNCTION(TS_MSG_IMPRINT)
 #ifndef OPENSSL_NO_BIO
+TS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_bio(BIO *bp, TS_MSG_IMPRINT **a)
+       {
+       return ASN1_d2i_bio_of(TS_MSG_IMPRINT, TS_MSG_IMPRINT_new, d2i_TS_MSG_IMPRINT, bp, a);
+       }
+
 int i2d_TS_MSG_IMPRINT_bio(BIO *bp, TS_MSG_IMPRINT *a)
 {
        return ASN1_i2d_bio_of_const(TS_MSG_IMPRINT, i2d_TS_MSG_IMPRINT, bp, a);