Project

General

Profile

Actions

Bug #11810

closed

[PATCH] OpenSSL::SSL::SSLcontext#{alpn,npn}_select_cb= does not work properly

Added by rhenium (Kazuki Yamaguchi) over 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-12-13 trunk 53061) [x86_64-linux]
[ruby-core:72082]

Description

The protocol list passed to the callback function (set by SSL_CTX_set_alpn_select_cb, SSL_CTX_set_next_proto_select_cb) is not null-terminated string.
This issue seems to have been existing since first NPN was supported (r36871).

This patch also removes the code checking the length of protocol name, because it is already validated by OpenSSL.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0