path: root/ext/openssl/ossl_config.h
diff options
authorKazuki Yamaguchi <>2020-02-19 05:06:09 +0000
committerKazuki Yamaguchi <>2021-03-16 19:16:10 +0900
commit22aeb6373e13929e80da1676b1dc79cbfffc38a4 (patch)
tree5e8d670bacb07bda665145a5987cbeaf2cbed304 /ext/openssl/ossl_config.h
parent7c13d2b3cc503790d044a6f5a34a61c50bc643c3 (diff)
[ruby/openssl] config: revert to C implementation of OpenSSL::Config
Revert OpenSSL::Config to using the OpenSSL API and remove our own parser implementation for the config file syntax. OpenSSL::Config now wraps a CONF object. Accessor methods deal with the object directly rather than Ruby-level internal state. This work is based on the old C code we used before 2010.
Notes: Merged:
Diffstat (limited to 'ext/openssl/ossl_config.h')
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/openssl/ossl_config.h b/ext/openssl/ossl_config.h
index 627d297..c96a00f 100644
--- a/ext/openssl/ossl_config.h
+++ b/ext/openssl/ossl_config.h
@@ -7,13 +7,10 @@
* This program is licensed under the same licence as Ruby.
* (See the file 'LICENCE'.)
-#if !defined(_OSSL_CONFIG_H_)
-#define _OSSL_CONFIG_H_
+#ifndef OSSL_CONFIG_H
+#define OSSL_CONFIG_H
-extern VALUE cConfig;
-extern VALUE eConfigError;
-CONF* DupConfigPtr(VALUE obj);
+CONF *DupConfigPtr(VALUE obj);
void Init_ossl_config(void);
-#endif /* _OSSL_CONFIG_H_ */
+#endif /* OSSL_CONFIG_H */