SaslSetContextOption function (sspi.h)
The SaslSetContextOption function sets the value of the specified property for the specified SASL context.
Syntax
SECURITY_STATUS SEC_ENTRY SaslSetContextOption(
[in] PCtxtHandle ContextHandle,
[in] ULONG Option,
[in] PVOID Value,
[in] ULONG Size
);
Parameters
[in] ContextHandle
Handle of the SASL context.
[in] Option
Property to set for the SASL context. The following table lists the possible values.
[in] Value
A pointer to a buffer that contains the value to set to the requested property. For the data type of the buffer for each value of the Option parameter, see the Option parameter.
[in] Size
The size, in bytes, of the buffer specified by the Value parameter.
Return value
If the call is completed successfully, this function returns SEC_E_OK. The following table shows some possible error return values.
Return code | Description |
---|---|
|
The buffer specified by the Value parameter is not large enough to contain the data value of the property specified by the Option parameter. |
|
The SASL context handle specified by the ContextHandle parameter was not found in the SASL list. |
|
The option specified in the Option parameter is not valid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | sspi.h (include Security.h) |
Library | Secur32.lib |
DLL | Secur32.dll |