We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfec9d9 commit 7c413b5Copy full SHA for 7c413b5
ext/openssl/ossl_ssl.c
@@ -869,7 +869,7 @@ ossl_sslctx_setup(VALUE self)
869
val = rb_iv_get(self, "@alpn_protocols");
870
if (!NIL_P(val)) {
871
VALUE rprotos = ssl_encode_npn_protocols(val);
872
- SSL_CTX_set_alpn_protos(ctx, StringValueCStr(rprotos), RSTRING_LEN(rprotos));
+ SSL_CTX_set_alpn_protos(ctx, (const unsigned char *)StringValueCStr(rprotos), RSTRING_LENINT(rprotos));
873
OSSL_Debug("SSL ALPN values added");
874
}
875
if (RTEST(rb_iv_get(self, "@alpn_select_cb"))) {
0 commit comments