summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/transcode.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-02-27 20:18:43 +0900
committergit <svn-admin@ruby-lang.org>2025-07-12 13:25:24 +0000
commit753e3b7ae352755e977228af62d24b3c7e2a9477 (patch)
treec0ed73451db44c0cd3b36600a6808a1262b01548 /include/ruby/internal/encoding/transcode.h
parentcf7b871a94f2d44eb35676a3dbf9278a73a612c1 (diff)
[ruby/openssl] asn1: align UTCTime year range with RFC 5280
ASN.1 UTCTime uses two-digit years. While X.680 does not specify how to map them as far as I can tell, X.509/PKIX uses this type to represent dates between year 1950-2049. OpenSSL::ASN1.decode has used 1969-2068 since the initial implementation. Given that ASN1::UTCTime#to_der relies on OpenSSL ASN1_UTCTIME type, which assumes the 1950-2049 range, this was likely unintentional. Use the range 1950-2049 consistently, and fix decoding of X.509 certificates with dates in 1950-1968. https://github.com/ruby/openssl/commit/b8b38e1438
Diffstat (limited to 'include/ruby/internal/encoding/transcode.h')
0 files changed, 0 insertions, 0 deletions