Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add missing HAS_PHA constant to _ssl module
  • Loading branch information
youknowone committed Mar 1, 2026
commit 28299e3136ebcc26df0909b5a79c29bd324c7163
2 changes: 2 additions & 0 deletions crates/stdlib/src/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ mod _ssl {
const HAS_TLSv1_3: bool = cfg!(ossl111);
#[pyattr]
const HAS_PSK: bool = true;
#[pyattr]
const HAS_PHA: bool = cfg!(ossl111);

// Encoding constants for Certificate.public_bytes()
#[pyattr]
Expand Down
2 changes: 2 additions & 0 deletions crates/stdlib/src/ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ mod _ssl {
const HAS_TLSv1_2: bool = true; // rustls supports TLS 1.2
#[pyattr]
const HAS_TLSv1_3: bool = true;
#[pyattr]
const HAS_PHA: bool = false; // Post-Handshake Auth not supported in rustls

// Encoding constants (matching OpenSSL)
#[pyattr]
Expand Down