summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf_def.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/conf/conf_def.c')
-rw-r--r--src/lib/libcrypto/conf/conf_def.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c
index d796b8454e..f0baee5261 100644
--- a/src/lib/libcrypto/conf/conf_def.c
+++ b/src/lib/libcrypto/conf/conf_def.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_def.c,v 1.39 2024/08/31 09:29:03 tb Exp $ */ 1/* $OpenBSD: conf_def.c,v 1.40 2024/08/31 09:34:05 tb 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 *
@@ -108,19 +108,6 @@ def_init_default(CONF *conf)
108} 108}
109 109
110static int 110static int
111def_init_WIN32(CONF *conf)
112{
113 if (conf == NULL)
114 return 0;
115
116 conf->meth = NCONF_WIN32();
117 conf->meth_data = (void *)CONF_type_win32;
118 conf->data = NULL;
119
120 return 1;
121}
122
123static int
124def_destroy_data(CONF *conf) 111def_destroy_data(CONF *conf)
125{ 112{
126 if (conf == NULL) 113 if (conf == NULL)
@@ -661,29 +648,9 @@ static CONF_METHOD default_method = {
661 .load = def_load, 648 .load = def_load,
662}; 649};
663 650
664static CONF_METHOD WIN32_method = {
665 "WIN32",
666 def_create,
667 def_init_WIN32,
668 def_destroy,
669 def_destroy_data,
670 def_load_bio,
671 def_dump,
672 def_is_number,
673 def_to_int,
674 def_load,
675};
676
677CONF_METHOD * 651CONF_METHOD *
678NCONF_default(void) 652NCONF_default(void)
679{ 653{
680 return &default_method; 654 return &default_method;
681} 655}
682LCRYPTO_ALIAS(NCONF_default); 656LCRYPTO_ALIAS(NCONF_default);
683
684CONF_METHOD *
685NCONF_WIN32(void)
686{
687 return &WIN32_method;
688}
689LCRYPTO_ALIAS(NCONF_WIN32);