unresolved external symbol __imp__GSS_C_NT_HOSTBASED_SERVICE

Jeffrey Altman jaltman at columbia.edu
Wed Jul 16 08:34:44 EDT 2003


Sam Hartman wrote:

>>>>>>"Jeffrey" == Jeffrey Altman <jaltman at columbia.edu> writes:
>>>>>>            
>>>>>>
>
>    Jeffrey> As far as I am aware that symbol is not being exported by
>    Jeffrey> the gssapi32.dll.  In my previous GSSAPI projects the
>    Jeffrey> OIDs table must be defined by the application on Windows.
>
>I thought we had intended to fix this for 1.3.
>
I do not think the work was completed.  gssapi_generic.c marks the 
symbols as GSS_DLLIMP

GSS_DLLIMP gss_OID GSS_C_NT_USER_NAME           = oids+0;
GSS_DLLIMP gss_OID gss_nt_user_name             = oids+0;
GSS_DLLIMP gss_OID GSS_C_NT_MACHINE_UID_NAME    = oids+1;
GSS_DLLIMP gss_OID gss_nt_machine_uid_name      = oids+1;
GSS_DLLIMP gss_OID GSS_C_NT_STRING_UID_NAME     = oids+2;
GSS_DLLIMP gss_OID gss_nt_string_uid_name       = oids+2;
GSS_DLLIMP gss_OID GSS_C_NT_HOSTBASED_SERVICE_X = oids+3;
GSS_DLLIMP gss_OID GSS_C_NT_HOSTBASED_SERVICE   = oids+4;
GSS_DLLIMP gss_OID gss_nt_service_name          = oids+4;
GSS_DLLIMP gss_OID GSS_C_NT_ANONYMOUS           = oids+5;
GSS_DLLIMP gss_OID GSS_C_NT_EXPORT_NAME         = oids+6;

But the only exports specified in from gssapi32.def are:

;
; GSS-API variables
;
        gss_nt_user_name        DATA
        gss_nt_machine_uid_name DATA
        gss_nt_string_uid_name  DATA
        gss_nt_service_name     DATA

As the following variables were never exported (gssapi32.def) they are 
not available from the DLL:

    GSS_C_NT_USER_NAME             DATA
    GSS_C_NT_MACHINE_UID_NAME      DATA
    GSS_C_NT_STRING_UID_NAME       DATA
    GSS_C_NT_HOSTBASED_SERVICE     DATA
    GSS_C_NT_HOSTBASED_SERVICE_X   DATA
    GSS_C_NT_ANONYMOUS             DATA
    GSS_C_NT_EXPORT_NAME           DATA

This can be verified with

    dumpbin /exports gssapi32.dll | grep GSS_C_NT

Jeffrey Altman


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3590 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.mit.edu/pipermail/kerberos/attachments/20030716/6272108b/attachment.bin


More information about the Kerberos mailing list