Commit 599b19a8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

secur32/tests: Added missing flags handling to testEnumerateSecurityPackages.

parent 9d725b17
...@@ -162,30 +162,35 @@ static void testEnumerateSecurityPackages(void) ...@@ -162,30 +162,35 @@ static void testEnumerateSecurityPackages(void)
for(i = 0; i < num_packages; ++i){ for(i = 0; i < num_packages; ++i){
trace("%d: Package \"%s\"\n", i, pkg_info[i].Name); trace("%d: Package \"%s\"\n", i, pkg_info[i].Name);
trace("Supported flags:\n"); trace("Supported flags:\n");
if(pkg_info[i].fCapabilities & SECPKG_FLAG_INTEGRITY) #define X(flag) \
trace("\tSECPKG_FLAG_INTEGRITY\n"); if(pkg_info[i].fCapabilities & flag) \
if(pkg_info[i].fCapabilities & SECPKG_FLAG_PRIVACY) trace("\t" #flag "\n")
trace("\tSECPKG_FLAG_PRIVACY\n");
if(pkg_info[i].fCapabilities & SECPKG_FLAG_TOKEN_ONLY) X(SECPKG_FLAG_INTEGRITY);
trace("\tSECPKG_FLAG_TOKEN_ONLY\n"); X(SECPKG_FLAG_PRIVACY);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_DATAGRAM) X(SECPKG_FLAG_TOKEN_ONLY);
trace("\tSECPKG_FLAG_DATAGRAM\n"); X(SECPKG_FLAG_DATAGRAM);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_CONNECTION) X(SECPKG_FLAG_CONNECTION);
trace("\tSECPKG_FLAG_CONNECTION\n"); X(SECPKG_FLAG_MULTI_REQUIRED);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_MULTI_REQUIRED) X(SECPKG_FLAG_CLIENT_ONLY);
trace("\tSECPKG_FLAG_MULTI_REQUIRED\n"); X(SECPKG_FLAG_EXTENDED_ERROR);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_CLIENT_ONLY) X(SECPKG_FLAG_IMPERSONATION);
trace("\tSECPKG_FLAG_CLIENT_ONLY\n"); X(SECPKG_FLAG_ACCEPT_WIN32_NAME);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_EXTENDED_ERROR) X(SECPKG_FLAG_STREAM);
trace("\tSECPKG_FLAG_EXTENDED_ERROR\n"); X(SECPKG_FLAG_NEGOTIABLE);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_IMPERSONATION) X(SECPKG_FLAG_GSS_COMPATIBLE);
trace("\tSECPKG_FLAG_IMPERSONATION\n"); X(SECPKG_FLAG_LOGON);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_ACCEPT_WIN32_NAME) X(SECPKG_FLAG_ASCII_BUFFERS);
trace("\tSECPKG_FLAG_ACCEPT_WIN32_NAME\n"); X(SECPKG_FLAG_FRAGMENT);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_STREAM) X(SECPKG_FLAG_MUTUAL_AUTH);
trace("\tSECPKG_FLAG_STREAM\n"); X(SECPKG_FLAG_DELEGATION);
if(pkg_info[i].fCapabilities & SECPKG_FLAG_READONLY_WITH_CHECKSUM) X(SECPKG_FLAG_READONLY_WITH_CHECKSUM);
trace("\tSECPKG_FLAG_READONLY_WITH_CHECKSUM\n"); X(SECPKG_FLAG_RESTRICTED_TOKENS);
X(SECPKG_FLAG_NEGO_EXTENDER);
X(SECPKG_FLAG_NEGOTIABLE2);
X(SECPKG_FLAG_APPCONTAINER_PASSTHROUGH);
X(SECPKG_FLAG_APPCONTAINER_CHECKS);
#undef X
trace("Comment: %s\n", pkg_info[i].Comment); trace("Comment: %s\n", pkg_info[i].Comment);
trace("\n"); trace("\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment