diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_conf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_conf.c b/src/lib/libcrypto/x509v3/v3_conf.c index daacf8d5df..e22aa50fcd 100644 --- a/src/lib/libcrypto/x509v3/v3_conf.c +++ b/src/lib/libcrypto/x509v3/v3_conf.c | |||
@@ -94,7 +94,7 @@ X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, char *name, char *value) | |||
94 | if (!ret) { | 94 | if (!ret) { |
95 | X509V3err(X509V3_F_X509V3_EXT_NCONF, | 95 | X509V3err(X509V3_F_X509V3_EXT_NCONF, |
96 | X509V3_R_ERROR_IN_EXTENSION); | 96 | X509V3_R_ERROR_IN_EXTENSION); |
97 | ERR_add_error_data(4, "name=", name, ", value=", value); | 97 | ERR_asprintf_error_data("name=%s, value=%s", name, value); |
98 | } | 98 | } |
99 | return ret; | 99 | return ret; |
100 | } | 100 | } |
@@ -142,8 +142,8 @@ do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int ext_nid, int crit, char *value) | |||
142 | if (sk_CONF_VALUE_num(nval) <= 0) { | 142 | if (sk_CONF_VALUE_num(nval) <= 0) { |
143 | X509V3err(X509V3_F_DO_EXT_NCONF, | 143 | X509V3err(X509V3_F_DO_EXT_NCONF, |
144 | X509V3_R_INVALID_EXTENSION_STRING); | 144 | X509V3_R_INVALID_EXTENSION_STRING); |
145 | ERR_add_error_data(4, "name=", OBJ_nid2sn(ext_nid), | 145 | ERR_asprintf_error_data("name=%s,section=%s", |
146 | ",section=", value); | 146 | OBJ_nid2sn(ext_nid), value); |
147 | return NULL; | 147 | return NULL; |
148 | } | 148 | } |
149 | ext_struc = method->v2i(method, ctx, nval); | 149 | ext_struc = method->v2i(method, ctx, nval); |
@@ -165,7 +165,7 @@ do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int ext_nid, int crit, char *value) | |||
165 | } else { | 165 | } else { |
166 | X509V3err(X509V3_F_DO_EXT_NCONF, | 166 | X509V3err(X509V3_F_DO_EXT_NCONF, |
167 | X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED); | 167 | X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED); |
168 | ERR_add_error_data(2, "name=", OBJ_nid2sn(ext_nid)); | 168 | ERR_asprintf_error_data("name=%s", OBJ_nid2sn(ext_nid)); |
169 | return NULL; | 169 | return NULL; |
170 | } | 170 | } |
171 | 171 | ||
@@ -283,7 +283,7 @@ v3_generic_extension(const char *ext, char *value, int crit, int gen_type, | |||
283 | if (!(obj = OBJ_txt2obj(ext, 0))) { | 283 | if (!(obj = OBJ_txt2obj(ext, 0))) { |
284 | X509V3err(X509V3_F_V3_GENERIC_EXTENSION, | 284 | X509V3err(X509V3_F_V3_GENERIC_EXTENSION, |
285 | X509V3_R_EXTENSION_NAME_ERROR); | 285 | X509V3_R_EXTENSION_NAME_ERROR); |
286 | ERR_add_error_data(2, "name=", ext); | 286 | ERR_asprintf_error_data("name=%s", ext); |
287 | goto err; | 287 | goto err; |
288 | } | 288 | } |
289 | 289 | ||
@@ -295,7 +295,7 @@ v3_generic_extension(const char *ext, char *value, int crit, int gen_type, | |||
295 | if (ext_der == NULL) { | 295 | if (ext_der == NULL) { |
296 | X509V3err(X509V3_F_V3_GENERIC_EXTENSION, | 296 | X509V3err(X509V3_F_V3_GENERIC_EXTENSION, |
297 | X509V3_R_EXTENSION_VALUE_ERROR); | 297 | X509V3_R_EXTENSION_VALUE_ERROR); |
298 | ERR_add_error_data(2, "value=", value); | 298 | ERR_asprintf_error_data("value=%s", value); |
299 | goto err; | 299 | goto err; |
300 | } | 300 | } |
301 | 301 | ||