summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf.h
diff options
context:
space:
mode:
authortb <>2024-08-31 09:21:44 +0000
committertb <>2024-08-31 09:21:44 +0000
commit99f92d1f135e09a99ace18755bc48e1f954b46cb (patch)
tree385ecf672229f7634b674c09baf02af1f1d0936b /src/lib/libcrypto/conf/conf.h
parentf725589730b88830cf4e7f19e9e69b38a87802d9 (diff)
downloadopenbsd-99f92d1f135e09a99ace18755bc48e1f954b46cb.tar.gz
openbsd-99f92d1f135e09a99ace18755bc48e1f954b46cb.tar.bz2
openbsd-99f92d1f135e09a99ace18755bc48e1f954b46cb.zip
Make CONF_METHOD opaque
Much of conf is designed in such a way that you really have to reach into its structs. This one piece can be hidden. It might even be removed soon. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/conf/conf.h')
-rw-r--r--src/lib/libcrypto/conf/conf.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index 7b30ad453d..5129a259b3 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.17 2024/08/31 09:18:00 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.18 2024/08/31 09:21:44 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 *
@@ -85,19 +85,6 @@ struct conf_st;
85struct conf_method_st; 85struct conf_method_st;
86typedef struct conf_method_st CONF_METHOD; 86typedef struct conf_method_st CONF_METHOD;
87 87
88struct conf_method_st {
89 const char *name;
90 CONF *(*create)(CONF_METHOD *meth);
91 int (*init)(CONF *conf);
92 int (*destroy)(CONF *conf);
93 int (*destroy_data)(CONF *conf);
94 int (*load_bio)(CONF *conf, BIO *bp, long *eline);
95 int (*dump)(const CONF *conf, BIO *bp);
96 int (*is_number)(const CONF *conf, char c);
97 int (*to_int)(const CONF *conf, char c);
98 int (*load)(CONF *conf, const char *name, long *eline);
99};
100
101/* Module definitions */ 88/* Module definitions */
102 89
103typedef struct conf_imodule_st CONF_IMODULE; 90typedef struct conf_imodule_st CONF_IMODULE;