SaslGetContextOption function
The SaslGetContextOption function retrieves the specified property of the specified SASL context.
Syntax
SECURITY_STATUS SEC_ENTRY SaslGetContextOption( _In_ PCtxtHandle ContextHandle, _In_ ULONG Option, _Out_ PVOID Value, _Out_ ULONG Size, _Out_opt_ PULONG Needed );
Parameters
- ContextHandle [in]
-
Handle of the SASL context.
- Option [in]
-
Property to return from the SASL context. The following table lists the possible values.
- Value [out]
-
A pointer to a buffer that receives the requested property. For the data type of the buffer for each value of the Option parameter, see the Option parameter.
- Size [out]
-
The size, in bytes, of the buffer specified by the Value parameter.
- Needed [out, optional]
-
A pointer to an unsigned LONG value that returns the value if the buffer specified by the Value parameter is not large enough to contain the data value of the property specified by the Option 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
|
Minimum supported client |
None supported |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|