summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/conf/conf.h3
-rw-r--r--src/lib/libcrypto/conf/conf_def.c35
-rw-r--r--src/lib/libcrypto/conf/conf_def.h37
-rw-r--r--src/lib/libcrypto/hidden/openssl/conf.h3
5 files changed, 4 insertions, 75 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index e20601a2cc..2b3fc45ba1 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1486,7 +1486,6 @@ NAME_CONSTRAINTS_check
1486NAME_CONSTRAINTS_free 1486NAME_CONSTRAINTS_free
1487NAME_CONSTRAINTS_it 1487NAME_CONSTRAINTS_it
1488NAME_CONSTRAINTS_new 1488NAME_CONSTRAINTS_new
1489NCONF_WIN32
1490NCONF_default 1489NCONF_default
1491NCONF_free 1490NCONF_free
1492NCONF_free_data 1491NCONF_free_data
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index feccaafb05..59222e8ca1 100644
--- a/src/lib/libcrypto/conf/conf.h
+++ b/src/lib/libcrypto/conf/conf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf.h,v 1.19 2024/08/31 09:26:18 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.20 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 *
@@ -133,7 +133,6 @@ struct conf_st {
133 133
134CONF *NCONF_new(CONF_METHOD *meth); 134CONF *NCONF_new(CONF_METHOD *meth);
135CONF_METHOD *NCONF_default(void); 135CONF_METHOD *NCONF_default(void);
136CONF_METHOD *NCONF_WIN32(void);
137void NCONF_free(CONF *conf); 136void NCONF_free(CONF *conf);
138void NCONF_free_data(CONF *conf); 137void NCONF_free_data(CONF *conf);
139 138
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);
diff --git a/src/lib/libcrypto/conf/conf_def.h b/src/lib/libcrypto/conf/conf_def.h
index 956e44337d..07b0adf81d 100644
--- a/src/lib/libcrypto/conf/conf_def.h
+++ b/src/lib/libcrypto/conf/conf_def.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_def.h,v 1.6 2016/12/21 15:49:29 jsing Exp $ */ 1/* $OpenBSD: conf_def.h,v 1.7 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 *
@@ -128,39 +128,4 @@ static unsigned short CONF_type_default[256] = {
128 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 128 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
129}; 129};
130 130
131static unsigned short CONF_type_win32[256] = {
132 0x0008, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
133 0x0000, 0x0010, 0x0010, 0x0000, 0x0000, 0x0010, 0x0000, 0x0000,
134 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
135 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
136 0x0010, 0x0200, 0x0400, 0x0000, 0x0000, 0x0200, 0x0200, 0x0000,
137 0x0000, 0x0000, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200,
138 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001,
139 0x0001, 0x0001, 0x0000, 0x0A00, 0x0000, 0x0000, 0x0000, 0x0200,
140 0x0200, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
141 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
142 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
143 0x0002, 0x0002, 0x0002, 0x0000, 0x0000, 0x0000, 0x0200, 0x0100,
144 0x0000, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
145 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
146 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
147 0x0004, 0x0004, 0x0004, 0x0000, 0x0200, 0x0000, 0x0200, 0x0000,
148 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
149 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
150 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
151 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
152 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
153 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
154 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
155 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
156 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
157 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
158 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
159 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
160 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
161 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
162 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
163 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000, 0x1000,
164};
165
166__END_HIDDEN_DECLS 131__END_HIDDEN_DECLS
diff --git a/src/lib/libcrypto/hidden/openssl/conf.h b/src/lib/libcrypto/hidden/openssl/conf.h
index b4fb6e9045..dc211d8968 100644
--- a/src/lib/libcrypto/hidden/openssl/conf.h
+++ b/src/lib/libcrypto/hidden/openssl/conf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf.h,v 1.3 2024/08/31 09:26:18 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.4 2024/08/31 09:34:05 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2024 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2024 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -38,7 +38,6 @@ LCRYPTO_USED(OPENSSL_config);
38LCRYPTO_USED(OPENSSL_no_config); 38LCRYPTO_USED(OPENSSL_no_config);
39LCRYPTO_USED(NCONF_new); 39LCRYPTO_USED(NCONF_new);
40LCRYPTO_USED(NCONF_default); 40LCRYPTO_USED(NCONF_default);
41LCRYPTO_USED(NCONF_WIN32);
42LCRYPTO_USED(NCONF_free); 41LCRYPTO_USED(NCONF_free);
43LCRYPTO_USED(NCONF_free_data); 42LCRYPTO_USED(NCONF_free_data);
44LCRYPTO_USED(NCONF_load); 43LCRYPTO_USED(NCONF_load);