diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c index c6b6635cc..ba8c507d3 100644 --- a/ext/openssl/ossl_pkey.c +++ b/ext/openssl/ossl_pkey.c @@ -599,7 +599,7 @@ pkey_from_parameters(int argc, VALUE *argv, VALUE self) * * Generates new parameters for the algorithm. _algo_name_ is a String that * represents the algorithm. The optional argument _options_ is a Hash that - * specifies the options specific to the algorithm. The orderq of the options + * specifies the options specific to the algorithm. The order of the options * can be important. * * A block can be passed optionally. The meaning of the arguments passed to @@ -650,6 +650,7 @@ ossl_pkey_s_generate_key(int argc, VALUE *argv, VALUE self) * OpenSSL::PKey.from_parameters(algo_name, parameters) -> pkey * * Generates a new key based on given key parameters. + * NOTE: Will only work on OpenSSL 3.0 or later. * * The first parameter is the type of the key to create, given as a String, for example RSA, DSA, EC etc. * Second parameter is the parameters to be used for the key.