@@ -1023,9 +1023,14 @@ build_cipher_string(VALUE v)
1023
1023
* ctx.ciphers = [name, ...]
1024
1024
* ctx.ciphers = [[name, version, bits, alg_bits], ...]
1025
1025
*
1026
- * Sets the list of available cipher suites for this context. Note in a server
1027
- * context some ciphers require the appropriate certificates. For example, an
1028
- * RSA cipher suite can only be chosen when an RSA certificate is available.
1026
+ * Sets the list of available cipher suites for TLS 1.2 and below for this
1027
+ * context.
1028
+ *
1029
+ * Note in a server context some ciphers require the appropriate certificates.
1030
+ * For example, an RSA cipher suite can only be chosen when an RSA certificate
1031
+ * is available.
1032
+ *
1033
+ * This method does not affect TLS 1.3 connections. See also #ciphersuites=.
1029
1034
*/
1030
1035
static VALUE
1031
1036
ossl_sslctx_set_ciphers (VALUE self , VALUE v )
@@ -1034,6 +1039,7 @@ ossl_sslctx_set_ciphers(VALUE self, VALUE v)
1034
1039
VALUE str ;
1035
1040
1036
1041
rb_check_frozen (self );
1042
+ // Assigning nil is a no-op for compatibility
1037
1043
if (NIL_P (v ))
1038
1044
return v ;
1039
1045
@@ -1050,9 +1056,8 @@ ossl_sslctx_set_ciphers(VALUE self, VALUE v)
1050
1056
* call-seq:
1051
1057
* ctx.ciphersuites = "cipher1:cipher2:..."
1052
1058
* ctx.ciphersuites = [name, ...]
1053
- * ctx.ciphersuites = [[name, version, bits, alg_bits], ...]
1054
1059
*
1055
- * Sets the list of available TLSv1 .3 cipher suites for this context.
1060
+ * Sets the list of available TLS 1 .3 cipher suites for this context.
1056
1061
*/
1057
1062
static VALUE
1058
1063
ossl_sslctx_set_ciphersuites (VALUE self , VALUE v )
@@ -1061,6 +1066,7 @@ ossl_sslctx_set_ciphersuites(VALUE self, VALUE v)
1061
1066
VALUE str ;
1062
1067
1063
1068
rb_check_frozen (self );
1069
+ // Assigning nil is a no-op for compatibility
1064
1070
if (NIL_P (v ))
1065
1071
return v ;
1066
1072
0 commit comments