Skip to content

Commit

Permalink
Merge pull request #2360 from sfackler/fix-alpn-lifetimes
Browse files Browse the repository at this point in the history
Fix lifetimes in ssl::select_next_proto
  • Loading branch information
sfackler authored Feb 2, 2025
2 parents 1aff280 + 8e6e30b commit f014afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ cfg_if! {
///
/// [`SslContextBuilder::set_alpn_protos`]: struct.SslContextBuilder.html#method.set_alpn_protos
#[corresponds(SSL_select_next_proto)]
pub fn select_next_proto<'a>(server: &[u8], client: &'a [u8]) -> Option<&'a [u8]> {
pub fn select_next_proto<'a>(server: &'a [u8], client: &'a [u8]) -> Option<&'a [u8]> {
unsafe {
let mut out = ptr::null_mut();
let mut outlen = 0;
Expand Down

0 comments on commit f014afb

Please sign in to comment.