diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-12-06 03:33:12 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-12-05 18:40:02 +0000 |
| commit | 8c4f79d5f30fb2fe647c4f3fd262a5fdeacaeca2 (patch) | |
| tree | a05f9480dbfafd5c9aabd1cb502f76c7248aea84 /thread.c | |
| parent | 00b91c727fdd0dd3bcd970dd4bc6c2b598cf4e1b (diff) | |
[ruby/openssl] x509cert: handle invalid validity periods in Certificate#inspect
In a newly allocated OpenSSL X509 object, the notBefore and notAfter
fields contain an ASN1_STRING object with type V_ASN1_UNDEF rather than
an ASN1_TIME.
Commit https://github.com/ruby/openssl/commit/73484f67949a made asn1time_to_time() stricter and it now raises
an exception if the argument is not an ASN1_TIME. Previously, it would
print a verbose-mode warning and return nil.
OpenSSL::X509::Certificate#inspect should work even when the certificate
is invalid. Let's handle this.
https://github.com/ruby/openssl/commit/18c283f2b6
Diffstat (limited to 'thread.c')
0 files changed, 0 insertions, 0 deletions
