SOCKET_SECURITY_SETTINGS structure (mstcpip.h)
The SOCKET_SECURITY_SETTINGS structure specifies generic security requirements for a socket.
Syntax
typedef struct _SOCKET_SECURITY_SETTINGS {
SOCKET_SECURITY_PROTOCOL SecurityProtocol;
ULONG SecurityFlags;
} SOCKET_SECURITY_SETTINGS;
Members
SecurityProtocol
A SOCKET_SECURITY_PROTOCOL value that identifies the type of security protocol to be used on the socket.
SecurityFlags
A set of flags that allow applications to set specific security requirements on a socket. The possible values are defined in the Mstcpip.h header file.
Remarks
The SOCKET_SECURITY_SETTINGS structure is supported on Windows Vista and later.
The SOCKET_SECURITY_SETTINGS structure is used by the WSASetSocketSecurity function to enable and apply security on a socket.
Security settings not addressed in this structure are derived from the system default policy or the administratively configured policy. It is recommended that most applications specify a value of SOCKET_SECURITY_PROTOCOL_DEFAULT for the SOCKET_SECURITY_PROTOCOL enumeration in the SecurityProtocol member. This makes the application neutral to security protocols and allows easier deployments among different systems.
Advanced applications can specify a security protocol and associated settings by casting them to the SOCKET_SECURITY_SETTINGS type.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | mstcpip.h |
See also
Using Secure Socket Extensions