Skip to content

Commit be68dad

Browse files
committed
Allow SSL_TLSEXT_ERR_NOACK from servername callback
1 parent 1782d07 commit be68dad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/callbacks.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ impl ServerNameCallbackConfig {
160160

161161
match result {
162162
SSL_TLSEXT_ERR_OK => Ok(()),
163+
// in practice no client does anything if SNI is not acked, and rustls
164+
// acks any syntactically valid extension (and ignores invalid ones, because OpenSSL)
165+
SSL_TLSEXT_ERR_NOACK => {
166+
log::trace!("NYI: SSL_TLSEXT_ERR_NOACK returned from SSL_CTX_servername_callback_func (acking the extension anyway)");
167+
Ok(())
168+
}
163169
_ => Err(Error::not_supported(
164170
"SSL_CTX_servername_callback_func return error",
165171
)),

0 commit comments

Comments
 (0)