diff options
author | Ben Laurie <ben@openssl.org> | 2005-03-31 10:55:55 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2005-03-31 10:55:55 +0000 |
commit | 45d10efc354a407467112333714df2dad59c66d1 (patch) | |
tree | ae7b88d92ae682bff3f9eca70dbbb0c92b342fb4 /crypto/asn1/asn_pack.c | |
parent | db3cb0e97a48720505e7fdd9781741d512446ef0 (diff) |
Simplicate and add lightness.
Diffstat (limited to 'crypto/asn1/asn_pack.c')
-rw-r--r-- | crypto/asn1/asn_pack.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/asn1/asn_pack.c b/crypto/asn1/asn_pack.c index e3535bc435..7421e69aed 100644 --- a/crypto/asn1/asn_pack.c +++ b/crypto/asn1/asn_pack.c @@ -67,8 +67,7 @@ /* Turn an ASN1 encoded SEQUENCE OF into a STACK of structures */ STACK *ASN1_seq_unpack(const unsigned char *buf, int len, - char *(*d2i)(void **,const unsigned char **,long), - void (*free_func)(void *)) + d2i_of_void *d2i,void (*free_func)(void *)) { STACK *sk; const unsigned char *pbuf; @@ -107,8 +106,7 @@ unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(void *,unsigned char **), /* Extract an ASN1 object from an ASN1_STRING */ -void *ASN1_unpack_string (ASN1_STRING *oct, - void *(*d2i)(void *,const unsigned char **,long)) +void *ASN1_unpack_string (ASN1_STRING *oct, d2i_of_void *d2i) { const unsigned char *p; char *ret; |