summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/conf/conf_mod.c')
-rw-r--r--src/lib/libcrypto/conf/conf_mod.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c
index cb54cc2a87..9f252385e8 100644
--- a/src/lib/libcrypto/conf/conf_mod.c
+++ b/src/lib/libcrypto/conf/conf_mod.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_mod.c,v 1.26 2015/04/11 16:03:21 deraadt Exp $ */ 1/* $OpenBSD: conf_mod.c,v 1.27 2017/01/29 17:49:22 beck Exp $ */
2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL 2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -211,7 +211,7 @@ module_run(const CONF *cnf, char *name, char *value, unsigned long flags)
211 211
212 if (!md) { 212 if (!md) {
213 if (!(flags & CONF_MFLAGS_SILENT)) { 213 if (!(flags & CONF_MFLAGS_SILENT)) {
214 CONFerr(CONF_F_MODULE_RUN, CONF_R_UNKNOWN_MODULE_NAME); 214 CONFerror(CONF_R_UNKNOWN_MODULE_NAME);
215 ERR_asprintf_error_data("module=%s", name); 215 ERR_asprintf_error_data("module=%s", name);
216 } 216 }
217 return -1; 217 return -1;
@@ -221,8 +221,7 @@ module_run(const CONF *cnf, char *name, char *value, unsigned long flags)
221 221
222 if (ret <= 0) { 222 if (ret <= 0) {
223 if (!(flags & CONF_MFLAGS_SILENT)) { 223 if (!(flags & CONF_MFLAGS_SILENT)) {
224 CONFerr(CONF_F_MODULE_RUN, 224 CONFerror(CONF_R_MODULE_INITIALIZATION_ERROR);
225 CONF_R_MODULE_INITIALIZATION_ERROR);
226 ERR_asprintf_error_data 225 ERR_asprintf_error_data
227 ("module=%s, value=%s, retcode=%-8d", 226 ("module=%s, value=%s, retcode=%-8d",
228 name, value, ret); 227 name, value, ret);
@@ -271,7 +270,7 @@ module_load_dso(const CONF *cnf, char *name, char *value, unsigned long flags)
271err: 270err:
272 if (dso) 271 if (dso)
273 DSO_free(dso); 272 DSO_free(dso);
274 CONFerr(CONF_F_MODULE_LOAD_DSO, errcode); 273 CONFerror(errcode);
275 ERR_asprintf_error_data("module=%s, path=%s", name, path); 274 ERR_asprintf_error_data("module=%s, path=%s", name, path);
276 return NULL; 275 return NULL;
277} 276}
@@ -368,13 +367,13 @@ module_init(CONF_MODULE *pmod, char *name, char *value, const CONF *cnf)
368 if (initialized_modules == NULL) { 367 if (initialized_modules == NULL) {
369 initialized_modules = sk_CONF_IMODULE_new_null(); 368 initialized_modules = sk_CONF_IMODULE_new_null();
370 if (!initialized_modules) { 369 if (!initialized_modules) {
371 CONFerr(CONF_F_MODULE_INIT, ERR_R_MALLOC_FAILURE); 370 CONFerror(ERR_R_MALLOC_FAILURE);
372 goto err; 371 goto err;
373 } 372 }
374 } 373 }
375 374
376 if (!sk_CONF_IMODULE_push(initialized_modules, imod)) { 375 if (!sk_CONF_IMODULE_push(initialized_modules, imod)) {
377 CONFerr(CONF_F_MODULE_INIT, ERR_R_MALLOC_FAILURE); 376 CONFerror(ERR_R_MALLOC_FAILURE);
378 goto err; 377 goto err;
379 } 378 }
380 379
@@ -566,7 +565,7 @@ CONF_parse_list(const char *list_, int sep, int nospc,
566 const char *lstart, *tmpend, *p; 565 const char *lstart, *tmpend, *p;
567 566
568 if (list_ == NULL) { 567 if (list_ == NULL) {
569 CONFerr(CONF_F_CONF_PARSE_LIST, CONF_R_LIST_CANNOT_BE_NULL); 568 CONFerror(CONF_R_LIST_CANNOT_BE_NULL);
570 return 0; 569 return 0;
571 } 570 }
572 571