Jacek Caban : secur32: Added SECPKG_ATTR_SUPPORTED_PROTOCOLS implementation .
Alexandre Julliard
julliard at winehq.org
Wed Mar 27 15:40:06 CDT 2013
Module: wine
Branch: master
Commit: e413b8a5054bc1c4ca1ddb35b6d21e3379b6a79b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e413b8a5054bc1c4ca1ddb35b6d21e3379b6a79b
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Mar 27 12:22:35 2013 +0100
secur32: Added SECPKG_ATTR_SUPPORTED_PROTOCOLS implementation.
---
dlls/secur32/schannel.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index 87bb942..9a83a76 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -281,14 +281,14 @@ static SECURITY_STATUS schan_QueryCredentialsAttributes(
ret = SEC_E_INTERNAL_ERROR;
break;
case SECPKG_ATTR_SUPPORTED_PROTOCOLS:
- if (pBuffer)
- {
- /* FIXME: get from OpenSSL? */
- FIXME("SECPKG_ATTR_SUPPORTED_PROTOCOLS: stub\n");
- ret = SEC_E_UNSUPPORTED_FUNCTION;
- }
- else
+ if(pBuffer) {
+ /* Regardless of MSDN documentation, tests show that this attribute takes into account
+ * what protocols are enabled for given credential. */
+ ((SecPkgCred_SupportedProtocols*)pBuffer)->grbitProtocol = cred->enabled_protocols;
+ ret = SEC_E_OK;
+ }else {
ret = SEC_E_INTERNAL_ERROR;
+ }
break;
default:
ret = SEC_E_UNSUPPORTED_FUNCTION;
More information about the wine-cvs
mailing list