mirror of
https://github.com/openharmony/third_party_rust_rust-openssl.git
synced 2026-07-19 15:13:31 -04:00
Fix lifetimes in ssl:select_next_proto
Signed-off-by: archane <zhaipeizhe@huawei.com> Change-Id: I342cfafc4ce02daf5f9b1d68eac1377f4e1b0737
This commit is contained in:
@@ -682,7 +682,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;
|
||||
|
||||
Reference in New Issue
Block a user