ext/rubysl/openssl/ossl_ssl.c in rubysl-openssl-2.6.0 vs ext/rubysl/openssl/ossl_ssl.c in rubysl-openssl-2.7.0
- old
+ new
@@ -804,10 +804,10 @@
SSL_CTX_set_next_proto_select_cb(ctx, ssl_npn_select_cb, (void *) self);
OSSL_Debug("SSL NPN select callback added");
}
#endif
-#ifdef HAVE_SSL_CTX_SET_ALPN_SELECT_CB
+#ifdef HAVE_SSL_CTX_SET_ALPN_PROTOS
val = rb_iv_get(self, "@alpn_protocols");
if (!NIL_P(val)) {
VALUE rprotos = ssl_encode_npn_protocols(val);
SSL_CTX_set_alpn_protos(ctx, (const unsigned char *)StringValueCStr(rprotos), RSTRING_LENINT(rprotos));
OSSL_Debug("SSL ALPN values added");