-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Missing TLS HandshakeType support (certificate_request) #19521
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
I found this issue when trying to connect to a postgres database which requires ssl.
In std.crypto.tls.Client there is a switch statement over the HandshakeType, but
certificate_requestis unhandled, so I simply receiveerror.TlsUnexpectedMessageinstead of being able to connect to my database.In the TLS RFC,
A server which is authenticating with a certificate MAY optionally request a certificate from the clientSo it seems this must be supported in some cases, unless I'm mistaken?
Expected Behavior
HandshakeType.certificate_requestto be supported, if it is indeed required for the protocol