diff --git a/.github/workflows/libssl.yaml b/.github/workflows/libssl.yaml index 7687aab..f08f011 100644 --- a/.github/workflows/libssl.yaml +++ b/.github/workflows/libssl.yaml @@ -8,7 +8,7 @@ on: pull_request: merge_group: schedule: - - cron: '15 12 * * 3' + - cron: '15 12 * * *' jobs: build: diff --git a/MATRIX.md b/MATRIX.md index d63a586..4826fd6 100644 --- a/MATRIX.md +++ b/MATRIX.md @@ -219,7 +219,7 @@ | `SSL_SESSION_free` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | `SSL_SESSION_get0_alpn_selected` | | | | | `SSL_SESSION_get0_cipher` | | | | -| `SSL_SESSION_get0_hostname` | | | | +| `SSL_SESSION_get0_hostname` | | | :exclamation: [^stub] | | `SSL_SESSION_get0_id_context` | | | | | `SSL_SESSION_get0_peer` | | | | | `SSL_SESSION_get0_ticket` | | | | diff --git a/build.rs b/build.rs index 54a44b5..f2e2091 100644 --- a/build.rs +++ b/build.rs @@ -178,6 +178,7 @@ const ENTRYPOINTS: &[&str] = &[ "SSL_select_next_proto", "SSL_sendfile", "SSL_SESSION_free", + "SSL_SESSION_get0_hostname", "SSL_SESSION_get_id", "SSL_SESSION_get_time", "SSL_SESSION_get_timeout", diff --git a/src/entry.rs b/src/entry.rs index e4a6d41..9d1f680 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -2216,6 +2216,12 @@ type SSL_custom_ext_free_cb_ex = Option< ), >; +// TODO: this could be implemented accurately by storing the SNI +// of the originating connection (but only for TLS1.2) in the `SslSession` +entry_stub! { + pub fn _SSL_SESSION_get0_hostname(_sess: *const SSL_SESSION) -> *const c_char; +} + // --------------------- #[cfg(test)]