Skip to content

Commit 28299e3

Browse files
committed
Add missing HAS_PHA constant to _ssl module
1 parent 7b7c7a1 commit 28299e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/stdlib/src/openssl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ mod _ssl {
277277
const HAS_TLSv1_3: bool = cfg!(ossl111);
278278
#[pyattr]
279279
const HAS_PSK: bool = true;
280+
#[pyattr]
281+
const HAS_PHA: bool = cfg!(ossl111);
280282

281283
// Encoding constants for Certificate.public_bytes()
282284
#[pyattr]

crates/stdlib/src/ssl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ mod _ssl {
327327
const HAS_TLSv1_2: bool = true; // rustls supports TLS 1.2
328328
#[pyattr]
329329
const HAS_TLSv1_3: bool = true;
330+
#[pyattr]
331+
const HAS_PHA: bool = false; // Post-Handshake Auth not supported in rustls
330332

331333
// Encoding constants (matching OpenSSL)
332334
#[pyattr]

0 commit comments

Comments
 (0)