summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-06-08 00:26:16 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-06-08 00:26:16 +0000
commit54b5fd537f7a7ac1874359fd42a4721b6839f7a1 (patch)
tree28839ccc94d178c059a6b7620e2926878bdfea98 /crypto/asn1
parent0b99d4f1d1ad1f57b2a2eaf0548823802a8f7330 (diff)
WIN32 fixes.
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/asn1t.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h
index c7e394bfe3..fc7ea0d1b2 100644
--- a/crypto/asn1/asn1t.h
+++ b/crypto/asn1/asn1t.h
@@ -811,7 +811,14 @@ typedef struct ASN1_PRINT_ARG_st {
}
#define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \
- IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(/**/, stname, itname, fname)
+ stname *fname##_new(void) \
+ { \
+ return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \
+ } \
+ void fname##_free(stname *a) \
+ { \
+ ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \
+ }
#define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \