Skip to content

Commit

Permalink
Merge pull request #1829 from dbodden-pesa/1827_dTLSv1_2_support
Browse files Browse the repository at this point in the history
Add DTLS 1.2 support in newer releases of SSL libs.
  • Loading branch information
sfackler authored Mar 14, 2023
2 parents 9eb1f1c + 40eed05 commit 6115633
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion openssl-sys/src/handwritten/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ cfg_if! {
pub fn TLS_server_method() -> *const SSL_METHOD;

pub fn TLS_client_method() -> *const SSL_METHOD;

}
} else {
extern "C" {
Expand All @@ -699,12 +700,18 @@ cfg_if! {

pub fn DTLSv1_method() -> *const SSL_METHOD;

#[cfg(ossl102)]
// DTLS 1.2 support started in OpenSSL 1.0.2, LibreSSL 3.3.2
#[cfg(any(ossl102,libressl332))]
pub fn DTLSv1_2_method() -> *const SSL_METHOD;
}
}
}

extern "C" {
#[cfg(ossl110)]
pub fn DTLSv1_2_method() -> *const SSL_METHOD;
}

extern "C" {
pub fn SSL_get_error(ssl: *const SSL, ret: c_int) -> c_int;
pub fn SSL_get_version(ssl: *const SSL) -> *const c_char;
Expand Down

0 comments on commit 6115633

Please sign in to comment.