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.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c
index 85d74e6fb6..4bde9eb376 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.37 2024/03/26 00:24:11 tb Exp $ */ 1/* $OpenBSD: conf_mod.c,v 1.38 2024/04/09 13:56:30 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 */
@@ -147,6 +147,7 @@ CONF_modules_load(const CONF *cnf, const char *appname, unsigned long flags)
147 147
148 return 1; 148 return 1;
149} 149}
150LCRYPTO_ALIAS(CONF_modules_load);
150 151
151int 152int
152CONF_modules_load_file(const char *filename, const char *appname, 153CONF_modules_load_file(const char *filename, const char *appname,
@@ -185,6 +186,7 @@ err:
185 186
186 return ret; 187 return ret;
187} 188}
189LCRYPTO_ALIAS(CONF_modules_load_file);
188 190
189static int 191static int
190module_run(const CONF *cnf, char *name, char *value, unsigned long flags) 192module_run(const CONF *cnf, char *name, char *value, unsigned long flags)
@@ -352,6 +354,7 @@ CONF_modules_unload(int all)
352 supported_modules = NULL; 354 supported_modules = NULL;
353 } 355 }
354} 356}
357LCRYPTO_ALIAS(CONF_modules_unload);
355 358
356/* unload a single module */ 359/* unload a single module */
357static void 360static void
@@ -389,6 +392,7 @@ CONF_modules_finish(void)
389 sk_CONF_IMODULE_free(initialized_modules); 392 sk_CONF_IMODULE_free(initialized_modules);
390 initialized_modules = NULL; 393 initialized_modules = NULL;
391} 394}
395LCRYPTO_ALIAS(CONF_modules_finish);
392 396
393/* finish a module instance */ 397/* finish a module instance */
394 398
@@ -409,6 +413,7 @@ CONF_module_add(const char *name, conf_init_func *ifunc, conf_finish_func *ffunc
409{ 413{
410 return module_add(name, ifunc, ffunc); 414 return module_add(name, ifunc, ffunc);
411} 415}
416LCRYPTO_ALIAS(CONF_module_add);
412 417
413void 418void
414CONF_modules_free(void) 419CONF_modules_free(void)
@@ -416,6 +421,7 @@ CONF_modules_free(void)
416 CONF_modules_finish(); 421 CONF_modules_finish();
417 CONF_modules_unload(1); 422 CONF_modules_unload(1);
418} 423}
424LCRYPTO_ALIAS(CONF_modules_free);
419 425
420/* Utility functions */ 426/* Utility functions */
421 427
@@ -424,54 +430,63 @@ CONF_imodule_get_name(const CONF_IMODULE *imod)
424{ 430{
425 return imod->name; 431 return imod->name;
426} 432}
433LCRYPTO_ALIAS(CONF_imodule_get_name);
427 434
428const char * 435const char *
429CONF_imodule_get_value(const CONF_IMODULE *imod) 436CONF_imodule_get_value(const CONF_IMODULE *imod)
430{ 437{
431 return imod->value; 438 return imod->value;
432} 439}
440LCRYPTO_ALIAS(CONF_imodule_get_value);
433 441
434void * 442void *
435CONF_imodule_get_usr_data(const CONF_IMODULE *imod) 443CONF_imodule_get_usr_data(const CONF_IMODULE *imod)
436{ 444{
437 return imod->usr_data; 445 return imod->usr_data;
438} 446}
447LCRYPTO_ALIAS(CONF_imodule_get_usr_data);
439 448
440void 449void
441CONF_imodule_set_usr_data(CONF_IMODULE *imod, void *usr_data) 450CONF_imodule_set_usr_data(CONF_IMODULE *imod, void *usr_data)
442{ 451{
443 imod->usr_data = usr_data; 452 imod->usr_data = usr_data;
444} 453}
454LCRYPTO_ALIAS(CONF_imodule_set_usr_data);
445 455
446CONF_MODULE * 456CONF_MODULE *
447CONF_imodule_get_module(const CONF_IMODULE *imod) 457CONF_imodule_get_module(const CONF_IMODULE *imod)
448{ 458{
449 return imod->mod; 459 return imod->mod;
450} 460}
461LCRYPTO_ALIAS(CONF_imodule_get_module);
451 462
452unsigned long 463unsigned long
453CONF_imodule_get_flags(const CONF_IMODULE *imod) 464CONF_imodule_get_flags(const CONF_IMODULE *imod)
454{ 465{
455 return imod->flags; 466 return imod->flags;
456} 467}
468LCRYPTO_ALIAS(CONF_imodule_get_flags);
457 469
458void 470void
459CONF_imodule_set_flags(CONF_IMODULE *imod, unsigned long flags) 471CONF_imodule_set_flags(CONF_IMODULE *imod, unsigned long flags)
460{ 472{
461 imod->flags = flags; 473 imod->flags = flags;
462} 474}
475LCRYPTO_ALIAS(CONF_imodule_set_flags);
463 476
464void * 477void *
465CONF_module_get_usr_data(CONF_MODULE *mod) 478CONF_module_get_usr_data(CONF_MODULE *mod)
466{ 479{
467 return mod->usr_data; 480 return mod->usr_data;
468} 481}
482LCRYPTO_ALIAS(CONF_module_get_usr_data);
469 483
470void 484void
471CONF_module_set_usr_data(CONF_MODULE *mod, void *usr_data) 485CONF_module_set_usr_data(CONF_MODULE *mod, void *usr_data)
472{ 486{
473 mod->usr_data = usr_data; 487 mod->usr_data = usr_data;
474} 488}
489LCRYPTO_ALIAS(CONF_module_set_usr_data);
475 490
476/* Return default config file name */ 491/* Return default config file name */
477 492
@@ -485,6 +500,7 @@ CONF_get1_default_config_file(void)
485 return (NULL); 500 return (NULL);
486 return file; 501 return file;
487} 502}
503LCRYPTO_ALIAS(CONF_get1_default_config_file);
488 504
489/* This function takes a list separated by 'sep' and calls the 505/* This function takes a list separated by 'sep' and calls the
490 * callback function giving the start and length of each member 506 * callback function giving the start and length of each member
@@ -531,3 +547,4 @@ CONF_parse_list(const char *list_, int sep, int nospc,
531 lstart = p + 1; 547 lstart = p + 1;
532 } 548 }
533} 549}
550LCRYPTO_ALIAS(CONF_parse_list);