Menu

#2229 Missing SSPI symbols

MSYS
unread
nobody
Bug
none
Unknown
False
2014-12-12
2014-08-02
No

Cannot compile C source code which contains following symbols from security.h/sspi.h:

SecPkgContext_NegotiationInfo and SECPKG_ATTR_NEGOTIATION_INFO

GCC gives me:

gcc -DUNICODE -D_UNICODE -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\SSPI Tests.o" "..\\src\\SSPI Tests.c" 
..\src\SSPI Tests.c: In function 'main':
..\src\SSPI Tests.c:82:3: error: unknown type name 'SecPkgContext_NegotiationInfo'
    SecPkgContext_NegotiationInfo pkg_info;
    ^
..\src\SSPI Tests.c:83:38: error: 'SECPKG_ATTR_NEGOTIATION_INFO' undeclared (first use in this function)
    ret = QueryContextAttributes(&ctx, SECPKG_ATTR_NEGOTIATION_INFO, &pkg_info);

Discussion

MongoDB Logo MongoDB