diff options
author | tb <> | 2024-08-31 09:39:31 +0000 |
---|---|---|
committer | tb <> | 2024-08-31 09:39:31 +0000 |
commit | c6ff9992123d41fbd71d986b1491805789c71e99 (patch) | |
tree | 409e6ba5b6c6edc3c3c315bf9ae084023111919b /src/lib/libcrypto/conf/conf_lib.c | |
parent | 344b6554f8409b3c53c8086f5ea3d2a58f09c1ff (diff) | |
download | openbsd-c6ff9992123d41fbd71d986b1491805789c71e99.tar.gz openbsd-c6ff9992123d41fbd71d986b1491805789c71e99.tar.bz2 openbsd-c6ff9992123d41fbd71d986b1491805789c71e99.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_lib.c')
-rw-r--r-- | src/lib/libcrypto/conf/conf_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index ccd09c0258..d7a2870520 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.21 2024/08/31 09:29:03 tb Exp $ */ | 1 | /* $OpenBSD: conf_lib.c,v 1.22 2024/08/31 09:39:31 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 | */ |
@@ -64,7 +64,7 @@ | |||
64 | 64 | ||
65 | #include "conf_local.h" | 65 | #include "conf_local.h" |
66 | 66 | ||
67 | static CONF_METHOD *default_CONF_method = NULL; | 67 | static const CONF_METHOD *default_CONF_method = NULL; |
68 | 68 | ||
69 | /* Init a 'CONF' structure from an old LHASH */ | 69 | /* Init a 'CONF' structure from an old LHASH */ |
70 | 70 | ||
@@ -202,7 +202,7 @@ LCRYPTO_ALIAS(CONF_free); | |||
202 | by the "CONF classic" functions, for consistency. */ | 202 | by the "CONF classic" functions, for consistency. */ |
203 | 203 | ||
204 | CONF * | 204 | CONF * |
205 | NCONF_new(CONF_METHOD *meth) | 205 | NCONF_new(const CONF_METHOD *meth) |
206 | { | 206 | { |
207 | CONF *ret; | 207 | CONF *ret; |
208 | 208 | ||