diff options
author | tb <> | 2024-08-31 09:34:05 +0000 |
---|---|---|
committer | tb <> | 2024-08-31 09:34:05 +0000 |
commit | ebbef0a381acc7b85b2afe9de7bd3cd041a523c6 (patch) | |
tree | 9fe4cd68c295b8132ce1d6151629c2ddffaa37d2 /src/lib | |
parent | 21569680041274b11a0f3de31bc00bdf52ddaa11 (diff) | |
download | openbsd-ebbef0a381acc7b85b2afe9de7bd3cd041a523c6.tar.gz openbsd-ebbef0a381acc7b85b2afe9de7bd3cd041a523c6.tar.bz2 openbsd-ebbef0a381acc7b85b2afe9de7bd3cd041a523c6.zip |
Remove NCONF_WIN32
Undocumented and entirely unused. Gets rid of a big, modifiable, global
table.
ok beck jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 35 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_def.h | 37 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/conf.h | 3 |
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 | |||
1486 | NAME_CONSTRAINTS_free | 1486 | NAME_CONSTRAINTS_free |
1487 | NAME_CONSTRAINTS_it | 1487 | NAME_CONSTRAINTS_it |
1488 | NAME_CONSTRAINTS_new | 1488 | NAME_CONSTRAINTS_new |
1489 | NCONF_WIN32 | ||
1490 | NCONF_default | 1489 | NCONF_default |
1491 | NCONF_free | 1490 | NCONF_free |
1492 | NCONF_free_data | 1491 | NCONF_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 | ||
134 | CONF *NCONF_new(CONF_METHOD *meth); | 134 | CONF *NCONF_new(CONF_METHOD *meth); |
135 | CONF_METHOD *NCONF_default(void); | 135 | CONF_METHOD *NCONF_default(void); |
136 | CONF_METHOD *NCONF_WIN32(void); | ||
137 | void NCONF_free(CONF *conf); | 136 | void NCONF_free(CONF *conf); |
138 | void NCONF_free_data(CONF *conf); | 137 | void 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 | ||
110 | static int | 110 | static int |
111 | def_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 | |||
123 | static int | ||
124 | def_destroy_data(CONF *conf) | 111 | def_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 | ||
664 | static 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 | |||
677 | CONF_METHOD * | 651 | CONF_METHOD * |
678 | NCONF_default(void) | 652 | NCONF_default(void) |
679 | { | 653 | { |
680 | return &default_method; | 654 | return &default_method; |
681 | } | 655 | } |
682 | LCRYPTO_ALIAS(NCONF_default); | 656 | LCRYPTO_ALIAS(NCONF_default); |
683 | |||
684 | CONF_METHOD * | ||
685 | NCONF_WIN32(void) | ||
686 | { | ||
687 | return &WIN32_method; | ||
688 | } | ||
689 | LCRYPTO_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 | ||
131 | static 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); | |||
38 | LCRYPTO_USED(OPENSSL_no_config); | 38 | LCRYPTO_USED(OPENSSL_no_config); |
39 | LCRYPTO_USED(NCONF_new); | 39 | LCRYPTO_USED(NCONF_new); |
40 | LCRYPTO_USED(NCONF_default); | 40 | LCRYPTO_USED(NCONF_default); |
41 | LCRYPTO_USED(NCONF_WIN32); | ||
42 | LCRYPTO_USED(NCONF_free); | 41 | LCRYPTO_USED(NCONF_free); |
43 | LCRYPTO_USED(NCONF_free_data); | 42 | LCRYPTO_USED(NCONF_free_data); |
44 | LCRYPTO_USED(NCONF_load); | 43 | LCRYPTO_USED(NCONF_load); |