summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf.h
diff options
context:
space:
mode:
authortb <>2024-08-31 09:39:31 +0000
committertb <>2024-08-31 09:39:31 +0000
commit3f796b469989d0e93492a6cb12d24e49b3a58dfd (patch)
tree409e6ba5b6c6edc3c3c315bf9ae084023111919b /src/lib/libcrypto/conf/conf.h
parent3eb4b5e423acd1dc7ea9a44c39f16acb3671ed45 (diff)
downloadopenbsd-3f796b469989d0e93492a6cb12d24e49b3a58dfd.tar.gz
openbsd-3f796b469989d0e93492a6cb12d24e49b3a58dfd.tar.bz2
openbsd-3f796b469989d0e93492a6cb12d24e49b3a58dfd.zip
const correct uses of CONF_METHOD
While not all of this is strictly needed, it was simply incorrect. This way another global which was modifiable for no good reason becomes const. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/conf/conf.h')
-rw-r--r--src/lib/libcrypto/conf/conf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index f5c449e547..7ddb33ccd4 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.21 2024/08/31 09:36:38 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.22 2024/08/31 09:39:31 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 *
@@ -126,12 +126,12 @@ void OPENSSL_no_config(void);
126 If that wasn't the case, the above functions would have been replaced */ 126 If that wasn't the case, the above functions would have been replaced */
127 127
128struct conf_st { 128struct conf_st {
129 CONF_METHOD *meth; 129 const CONF_METHOD *meth;
130 LHASH_OF(CONF_VALUE) *data; 130 LHASH_OF(CONF_VALUE) *data;
131}; 131};
132 132
133CONF *NCONF_new(CONF_METHOD *meth); 133CONF *NCONF_new(const CONF_METHOD *meth);
134CONF_METHOD *NCONF_default(void); 134const CONF_METHOD *NCONF_default(void);
135void NCONF_free(CONF *conf); 135void NCONF_free(CONF *conf);
136void NCONF_free_data(CONF *conf); 136void NCONF_free_data(CONF *conf);
137 137