diff options
author | Mark Wright <gienah@gentoo.org> | 2017-10-15 01:24:12 +1100 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2017-11-04 13:48:36 +1100 |
commit | 7af808153dd34a980e027a04d4490ae38019b3ed (patch) | |
tree | 9aee4c990ab316b2caeb3404dc532c6972869925 /ext/openssl/ossl_x509cert.c | |
parent | 819d7e5bed8695183607345f32092218e7e54194 (diff) | |
download | ruby-openssl-7af808153dd34a980e027a04d4490ae38019b3ed.tar.gz |
Fix build failure against OpenSSL 1.1 built with no-deprecated
Thanks rhenium for the code review and fixes.
Diffstat (limited to 'ext/openssl/ossl_x509cert.c')
-rw-r--r-- | ext/openssl/ossl_x509cert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c index cf82a53d..8d16b9b7 100644 --- a/ext/openssl/ossl_x509cert.c +++ b/ext/openssl/ossl_x509cert.c @@ -440,7 +440,7 @@ ossl_x509_set_not_before(VALUE self, VALUE time) GetX509(self, x509); asn1time = ossl_x509_time_adjust(NULL, time); - if (!X509_set_notBefore(x509, asn1time)) { + if (!X509_set1_notBefore(x509, asn1time)) { ASN1_TIME_free(asn1time); ossl_raise(eX509CertError, "X509_set_notBefore"); } @@ -479,7 +479,7 @@ ossl_x509_set_not_after(VALUE self, VALUE time) GetX509(self, x509); asn1time = ossl_x509_time_adjust(NULL, time); - if (!X509_set_notAfter(x509, asn1time)) { + if (!X509_set1_notAfter(x509, asn1time)) { ASN1_TIME_free(asn1time); ossl_raise(eX509CertError, "X509_set_notAfter"); } |