tlscert

Contains the certificate information.

Service:Winsock 2

Syntax

  #include <winsock/novsock2.h>
  
  struct tlscert
  {
     char  *cert;
     int    certlen;
  };
  

Fields

cert

Points to an ASN.1 encoded string that the application can parse to obtain specific information about the peer.

certlen

Specifies the length of the cert field.

Remarks

If WSAIoctl is called to get the certificate(s) obtained as a result of the TLS handshake authentication that was performed on a socket, the lpInBuffer parameter points to this structure.