diff options
author | Kazuki Yamaguchi <[email protected]> | 2020-02-19 05:06:09 +0000 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-03-16 19:16:10 +0900 |
commit | 22aeb6373e13929e80da1676b1dc79cbfffc38a4 (patch) | |
tree | 5e8d670bacb07bda665145a5987cbeaf2cbed304 /ext/openssl/ossl_config.h | |
parent | 7c13d2b3cc503790d044a6f5a34a61c50bc643c3 (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.
https://github.com/ruby/openssl/commit/c891e0ea89
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'ext/openssl/ossl_config.h')
-rw-r--r-- | ext/openssl/ossl_config.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/openssl/ossl_config.h b/ext/openssl/ossl_config.h index 627d297ba3..c96a00f70b 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 */ |