diff options
author | tb <> | 2024-08-31 09:41:53 +0000 |
---|---|---|
committer | tb <> | 2024-08-31 09:41:53 +0000 |
commit | 4cc1384c3d5bce74b01be7b3ccca401fd1890ee3 (patch) | |
tree | 82c3879fada8ce2c25df980e1148e005da030c06 /src/lib/libcrypto/conf | |
parent | c6ff9992123d41fbd71d986b1491805789c71e99 (diff) | |
download | openbsd-4cc1384c3d5bce74b01be7b3ccca401fd1890ee3.tar.gz openbsd-4cc1384c3d5bce74b01be7b3ccca401fd1890ee3.tar.bz2 openbsd-4cc1384c3d5bce74b01be7b3ccca401fd1890ee3.zip |
Inline NCONF_free_data in its only user
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/conf')
-rw-r--r-- | src/lib/libcrypto/conf/conf.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_lib.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h index 7ddb33ccd4..ebffab1401 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.22 2024/08/31 09:39:31 tb Exp $ */ | 1 | /* $OpenBSD: conf.h,v 1.23 2024/08/31 09:41:53 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 | CONF *NCONF_new(const CONF_METHOD *meth); | 133 | CONF *NCONF_new(const CONF_METHOD *meth); |
134 | const CONF_METHOD *NCONF_default(void); | 134 | const CONF_METHOD *NCONF_default(void); |
135 | void NCONF_free(CONF *conf); | 135 | void NCONF_free(CONF *conf); |
136 | void NCONF_free_data(CONF *conf); | ||
137 | 136 | ||
138 | int NCONF_load(CONF *conf, const char *file, long *eline); | 137 | int NCONF_load(CONF *conf, const char *file, long *eline); |
139 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); | 138 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); |
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index d7a2870520..4440cfe6fd 100644 --- a/src/lib/libcrypto/conf/conf_lib.c +++ b/src/lib/libcrypto/conf/conf_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: conf_lib.c,v 1.22 2024/08/31 09:39:31 tb Exp $ */ | 1 | /* $OpenBSD: conf_lib.c,v 1.23 2024/08/31 09:41:53 tb Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -191,7 +191,7 @@ CONF_free(LHASH_OF(CONF_VALUE) *conf) | |||
191 | CONF ctmp; | 191 | CONF ctmp; |
192 | 192 | ||
193 | CONF_set_nconf(&ctmp, conf); | 193 | CONF_set_nconf(&ctmp, conf); |
194 | NCONF_free_data(&ctmp); | 194 | ctmp.meth->destroy_data(&ctmp); |
195 | } | 195 | } |
196 | LCRYPTO_ALIAS(CONF_free); | 196 | LCRYPTO_ALIAS(CONF_free); |
197 | 197 | ||
@@ -228,15 +228,6 @@ NCONF_free(CONF *conf) | |||
228 | } | 228 | } |
229 | LCRYPTO_ALIAS(NCONF_free); | 229 | LCRYPTO_ALIAS(NCONF_free); |
230 | 230 | ||
231 | void | ||
232 | NCONF_free_data(CONF *conf) | ||
233 | { | ||
234 | if (conf == NULL) | ||
235 | return; | ||
236 | conf->meth->destroy_data(conf); | ||
237 | } | ||
238 | LCRYPTO_ALIAS(NCONF_free_data); | ||
239 | |||
240 | int | 231 | int |
241 | NCONF_load(CONF *conf, const char *file, long *eline) | 232 | NCONF_load(CONF *conf, const char *file, long *eline) |
242 | { | 233 | { |