diff options
author | beck <> | 2000-12-15 02:58:47 +0000 |
---|---|---|
committer | beck <> | 2000-12-15 02:58:47 +0000 |
commit | 9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch) | |
tree | 5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/asn1/asn_pack.c | |
parent | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff) | |
download | openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2 openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/asn1/asn_pack.c')
-rw-r--r-- | src/lib/libcrypto/asn1/asn_pack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/asn_pack.c b/src/lib/libcrypto/asn1/asn_pack.c index 662a2626a1..bdf5f130b3 100644 --- a/src/lib/libcrypto/asn1/asn_pack.c +++ b/src/lib/libcrypto/asn1/asn_pack.c | |||
@@ -65,7 +65,7 @@ | |||
65 | /* Turn an ASN1 encoded SEQUENCE OF into a STACK of structures */ | 65 | /* Turn an ASN1 encoded SEQUENCE OF into a STACK of structures */ |
66 | 66 | ||
67 | STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(), | 67 | STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(), |
68 | void (*free_func)()) | 68 | void (*free_func)(void *)) |
69 | { | 69 | { |
70 | STACK *sk; | 70 | STACK *sk; |
71 | unsigned char *pbuf; | 71 | unsigned char *pbuf; |
@@ -77,7 +77,7 @@ STACK *ASN1_seq_unpack(unsigned char *buf, int len, char *(*d2i)(), | |||
77 | } | 77 | } |
78 | 78 | ||
79 | /* Turn a STACK structures into an ASN1 encoded SEQUENCE OF structure in a | 79 | /* Turn a STACK structures into an ASN1 encoded SEQUENCE OF structure in a |
80 | * Malloc'ed buffer | 80 | * OPENSSL_malloc'ed buffer |
81 | */ | 81 | */ |
82 | 82 | ||
83 | unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf, | 83 | unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf, |
@@ -90,7 +90,7 @@ unsigned char *ASN1_seq_pack(STACK *safes, int (*i2d)(), unsigned char **buf, | |||
90 | ASN1err(ASN1_F_ASN1_SEQ_PACK,ASN1_R_ENCODE_ERROR); | 90 | ASN1err(ASN1_F_ASN1_SEQ_PACK,ASN1_R_ENCODE_ERROR); |
91 | return NULL; | 91 | return NULL; |
92 | } | 92 | } |
93 | if (!(safe = Malloc (safelen))) { | 93 | if (!(safe = OPENSSL_malloc (safelen))) { |
94 | ASN1err(ASN1_F_ASN1_SEQ_PACK,ERR_R_MALLOC_FAILURE); | 94 | ASN1err(ASN1_F_ASN1_SEQ_PACK,ERR_R_MALLOC_FAILURE); |
95 | return NULL; | 95 | return NULL; |
96 | } | 96 | } |
@@ -134,7 +134,7 @@ ASN1_STRING *ASN1_pack_string (void *obj, int (*i2d)(), ASN1_STRING **oct) | |||
134 | ASN1err(ASN1_F_ASN1_PACK_STRING,ASN1_R_ENCODE_ERROR); | 134 | ASN1err(ASN1_F_ASN1_PACK_STRING,ASN1_R_ENCODE_ERROR); |
135 | return NULL; | 135 | return NULL; |
136 | } | 136 | } |
137 | if (!(p = Malloc (octmp->length))) { | 137 | if (!(p = OPENSSL_malloc (octmp->length))) { |
138 | ASN1err(ASN1_F_ASN1_PACK_STRING,ERR_R_MALLOC_FAILURE); | 138 | ASN1err(ASN1_F_ASN1_PACK_STRING,ERR_R_MALLOC_FAILURE); |
139 | return NULL; | 139 | return NULL; |
140 | } | 140 | } |