diff options
author | jsing <> | 2015-09-29 13:54:40 +0000 |
---|---|---|
committer | jsing <> | 2015-09-29 13:54:40 +0000 |
commit | 85e1dd6e42a412bf15e88ce481b4efbef96053c7 (patch) | |
tree | 742ffab301d8bdb3b31aaef2b4c50dc018af8970 /src/lib/libcrypto/asn1 | |
parent | 709c2c131d5d5d3f3c8ecb110b01f3d5afa6ddfd (diff) | |
download | openbsd-85e1dd6e42a412bf15e88ce481b4efbef96053c7.tar.gz openbsd-85e1dd6e42a412bf15e88ce481b4efbef96053c7.tar.bz2 openbsd-85e1dd6e42a412bf15e88ce481b4efbef96053c7.zip |
Replace remaining M_ASN1_BIT_STRING_(new|free) macros with calls to
ASN1_BIT_STRING_(new|free).
ok beck@ doug@
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/a_bitstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c index c0259ad815..c847b471d6 100644 --- a/src/lib/libcrypto/asn1/a_bitstr.c +++ b/src/lib/libcrypto/asn1/a_bitstr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_bitstr.c,v 1.22 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: a_bitstr.c,v 1.23 2015/09/29 13:54:40 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -140,7 +140,7 @@ c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | if ((a == NULL) || ((*a) == NULL)) { | 142 | if ((a == NULL) || ((*a) == NULL)) { |
143 | if ((ret = M_ASN1_BIT_STRING_new()) == NULL) | 143 | if ((ret = ASN1_BIT_STRING_new()) == NULL) |
144 | return (NULL); | 144 | return (NULL); |
145 | } else | 145 | } else |
146 | ret = (*a); | 146 | ret = (*a); |
@@ -178,7 +178,7 @@ c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len) | |||
178 | err: | 178 | err: |
179 | ASN1err(ASN1_F_C2I_ASN1_BIT_STRING, i); | 179 | ASN1err(ASN1_F_C2I_ASN1_BIT_STRING, i); |
180 | if ((ret != NULL) && ((a == NULL) || (*a != ret))) | 180 | if ((ret != NULL) && ((a == NULL) || (*a != ret))) |
181 | M_ASN1_BIT_STRING_free(ret); | 181 | ASN1_BIT_STRING_free(ret); |
182 | return (NULL); | 182 | return (NULL); |
183 | } | 183 | } |
184 | 184 | ||