summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_bitst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_bitst.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_bitst.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_bitst.c b/src/lib/libcrypto/x509v3/v3_bitst.c
index e846fc2ffe..039faf2fd6 100644
--- a/src/lib/libcrypto/x509v3/v3_bitst.c
+++ b/src/lib/libcrypto/x509v3/v3_bitst.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_bitst.c,v 1.13 2016/12/30 15:54:49 jsing Exp $ */ 1/* $OpenBSD: v3_bitst.c,v 1.14 2017/01/29 17:49:23 beck Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -145,7 +145,7 @@ v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
145 BIT_STRING_BITNAME *bnam; 145 BIT_STRING_BITNAME *bnam;
146 146
147 if (!(bs = ASN1_BIT_STRING_new())) { 147 if (!(bs = ASN1_BIT_STRING_new())) {
148 X509V3err(X509V3_F_V2I_ASN1_BIT_STRING, ERR_R_MALLOC_FAILURE); 148 X509V3error(ERR_R_MALLOC_FAILURE);
149 return NULL; 149 return NULL;
150 } 150 }
151 for (i = 0; i < sk_CONF_VALUE_num(nval); i++) { 151 for (i = 0; i < sk_CONF_VALUE_num(nval); i++) {
@@ -155,8 +155,7 @@ v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
155 !strcmp(bnam->lname, val->name) ) { 155 !strcmp(bnam->lname, val->name) ) {
156 if (!ASN1_BIT_STRING_set_bit(bs, 156 if (!ASN1_BIT_STRING_set_bit(bs,
157 bnam->bitnum, 1)) { 157 bnam->bitnum, 1)) {
158 X509V3err(X509V3_F_V2I_ASN1_BIT_STRING, 158 X509V3error(ERR_R_MALLOC_FAILURE);
159 ERR_R_MALLOC_FAILURE);
160 ASN1_BIT_STRING_free(bs); 159 ASN1_BIT_STRING_free(bs);
161 return NULL; 160 return NULL;
162 } 161 }
@@ -164,8 +163,7 @@ v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
164 } 163 }
165 } 164 }
166 if (!bnam->lname) { 165 if (!bnam->lname) {
167 X509V3err(X509V3_F_V2I_ASN1_BIT_STRING, 166 X509V3error(X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT);
168 X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT);
169 X509V3_conf_err(val); 167 X509V3_conf_err(val);
170 ASN1_BIT_STRING_free(bs); 168 ASN1_BIT_STRING_free(bs);
171 return NULL; 169 return NULL;