Skip to content

Commit

Permalink
enable set_groups_list for boringssl
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Jan 24, 2024
1 parent 5abf943 commit 294a4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ cfg_if! {
s as *const c_void as *mut c_void,
)
}
} else if #[cfg(libressl251)] {
} else if #[cfg(any(boringssl, libressl251))] {
extern "C" {
pub fn SSL_CTX_set1_groups_list(ctx: *mut SSL_CTX, s: *const c_char) -> c_int;
}
Expand Down
4 changes: 2 additions & 2 deletions openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1954,9 +1954,9 @@ impl SslContextBuilder {

/// Sets the context's supported elliptic curve groups.
///
/// Requires OpenSSL 1.1.1 or LibreSSL 2.5.1 or newer.
/// Requires BoringSSL or OpenSSL 1.1.1 or LibreSSL 2.5.1 or newer.
#[corresponds(SSL_CTX_set1_groups_list)]
#[cfg(any(ossl111, libressl251))]
#[cfg(any(ossl111, boringssl, libressl251))]
pub fn set_groups_list(&mut self, groups: &str) -> Result<(), ErrorStack> {
let groups = CString::new(groups).unwrap();
unsafe {
Expand Down

0 comments on commit 294a4a5

Please sign in to comment.