MCPcopy Create free account
hub / github.com/XTLS/Go / CertificateRequestInfo

Struct CertificateRequestInfo

common.go:459–475  ·  view source on GitHub ↗

CertificateRequestInfo contains information from a server's CertificateRequest message, which is used to demand a certificate and proof of control from a client.

Source from the content-addressed store, hash-verified

457// CertificateRequest message, which is used to demand a certificate and proof
458// of control from a client.
459type CertificateRequestInfo struct {
460 // AcceptableCAs contains zero or more, DER-encoded, X.501
461 // Distinguished Names. These are the names of root or intermediate CAs
462 // that the server wishes the returned certificate to be signed by. An
463 // empty slice indicates that the server has no preference.
464 AcceptableCAs [][]byte
465
466 // SignatureSchemes lists the signature schemes that the server is
467 // willing to verify.
468 SignatureSchemes []SignatureScheme
469
470 // Version is the TLS version that was negotiated for this connection.
471 Version uint16
472
473 // ctx is the context of the handshake that is in progress.
474 ctx context.Context
475}
476
477// Context returns the context of the handshake that is in progress.
478// This context is a child of the context passed to HandshakeContext,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected