diff --git a/zenith_utils/src/pq_proto.rs b/zenith_utils/src/pq_proto.rs index 43a4b217c2..3a87906b22 100644 --- a/zenith_utils/src/pq_proto.rs +++ b/zenith_utils/src/pq_proto.rs @@ -652,7 +652,7 @@ impl<'a> BeMessage<'a> { } BeMessage::EncryptionResponse(should_negotiate) => { - let response = if *should_negotiate { b'Y' } else { b'N' }; + let response = if *should_negotiate { b'S' } else { b'N' }; buf.put_u8(response); } diff --git a/zenith_utils/tests/ssl_test.rs b/zenith_utils/tests/ssl_test.rs index 3bc5ffb790..ba0f63d6ec 100644 --- a/zenith_utils/tests/ssl_test.rs +++ b/zenith_utils/tests/ssl_test.rs @@ -43,7 +43,7 @@ fn ssl() { client_sock.write_u32::(80877103).unwrap(); let ssl_response = client_sock.read_u8().unwrap(); - assert_eq!(b'Y', ssl_response); + assert_eq!(b'S', ssl_response); let mut cfg = rustls::ClientConfig::new(); cfg.root_store.add(&CERT).unwrap();