summaryrefslogtreecommitdiff
path: root/include/ruby/internal/stdalign.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-01-30 02:26:41 +0900
committergit <svn-admin@ruby-lang.org>2025-09-30 11:59:28 +0000
commitad35a4be82f9356045036875759874bfac6c483b (patch)
treee84c43c0c27c611f76a53a661d4ba304ccc9e710 /include/ruby/internal/stdalign.h
parent986d9177dd63aaecbbb6e3a02fe20370cbd21bc5 (diff)
[ruby/openssl] pkey: disallow {DH,DSA,EC,RSA}.new without arguments with OpenSSL 3.0
Raise ArgumentError if this is attempted when the extension is compiled with OpenSSL 3.0 or later. The form will be fully removed when we drop support for OpenSSL 1.1.1. When OpenSSL::PKey::{DH,DSA,EC,RSA}.new is called without any arguments, it sets up an empty corresponding low-level struct and wraps it in an EVP_PKEY. This is useful when the user later fills the missing fields using low-level setter methods such as OpenSSL::PKey::RSA#set_key. Such setter methods are not compatible with OpenSSL 3.0 or later, where EVP_PKEY is immutable once created. This means that the ability to create an empty instance is useless. https://github.com/ruby/openssl/commit/affd569f78
Diffstat (limited to 'include/ruby/internal/stdalign.h')
0 files changed, 0 insertions, 0 deletions