diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-10-31 16:29:05 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-12-29 11:20:33 +1300 |
commit | 0cddb0b736c8be8de71e231a82c08efc13f580ed (patch) | |
tree | aa8c395f3e33b7ef04233f585de6e9945b95c15b /ext | |
parent | 3e48c7ac3dcb8318815577f22cf4e40820e85f43 (diff) | |
download | ruby-openssl-0cddb0b736c8be8de71e231a82c08efc13f580ed.tar.gz |
Simplify handling of version constant.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl.c | 5 | ||||
-rw-r--r-- | ext/openssl/ossl.h | 1 | ||||
-rw-r--r-- | ext/openssl/ossl_version.h | 15 |
3 files changed, 0 insertions, 21 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 3fc31452..14a7919a 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -1157,11 +1157,6 @@ Init_openssl(void) rb_define_singleton_method(mOSSL, "fixed_length_secure_compare", ossl_crypto_fixed_length_secure_compare, 2); /* - * OpenSSL ruby extension version - */ - rb_define_const(mOSSL, "VERSION", rb_str_new2(OSSL_VERSION)); - - /* * Version of OpenSSL the ruby OpenSSL extension was built with */ rb_define_const(mOSSL, "OPENSSL_VERSION", rb_str_new2(OPENSSL_VERSION_TEXT)); diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 4f5441c6..8074afcd 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -173,7 +173,6 @@ void ossl_debug(const char *, ...); #ifndef OPENSSL_NO_TS #include "ossl_ts.h" #endif -#include "ossl_version.h" #include "ossl_x509.h" #include "ossl_engine.h" #include "ossl_kdf.h" diff --git a/ext/openssl/ossl_version.h b/ext/openssl/ossl_version.h deleted file mode 100644 index c162f8c2..00000000 --- a/ext/openssl/ossl_version.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 'OpenSSL for Ruby' project - * Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz> - * All rights reserved. - */ -/* - * This program is licensed under the same licence as Ruby. - * (See the file 'LICENCE'.) - */ -#if !defined(_OSSL_VERSION_H_) -#define _OSSL_VERSION_H_ - -#define OSSL_VERSION "2.1.2" - -#endif /* _OSSL_VERSION_H_ */ |