Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error GSSAPI_Token" is undefined and more #16

Open
johnjohnsp1 opened this issue May 28, 2020 · 2 comments
Open

compile error GSSAPI_Token" is undefined and more #16

johnjohnsp1 opened this issue May 28, 2020 · 2 comments

Comments

@johnjohnsp1
Copy link

Hello Benjamin,
i have downloaded the trial license for ASN1/C for x64 kekeo use and followed the procedure to make the .h file:

c:\temp\kekeo\modules\asn1>set ASN1C="C:\Program Files\OSS Nokalva\ossasn1\winx64.trial\10.7.0"
c:\temp\kekeo\modules\asn1>%ASN1C%\bin\asn1.exe ^
More? %ASN1C%\asn1dflt\asn1dflt.msx64.zp8 ^
More? KerberosV5Spec2.asn KerberosV5-PK-INIT-SPEC.asn PKIX1Explicit88.asn PKINIT.asn MS-SFU-KILE.asn ^
More? -noSampleCode -der -root -CStyleComments -externalName kekeo_asn1 -messageFormat msvc -verbose ^
More? -headerFile kull_m_kerberos_oss_asn1_internal.h -soedFile kull_m_kerberos_oss_asn1_internal_x64.c
OSS ASN.1 Compiler Version 10.7
Copyright (C) 2019 OSS Nokalva, Inc. All rights reserved.

asn1 : C0556I: Reading configuration file C:\Program Files\OSS Nokalva\ossinfoctrial.

  • COMPANY = "(Trial)"
  • PRODUCT = "ASN.1/C"
  • COMPILER = "YES"
  • RUNTIME = "NODELOCKED"
  • MACHINE_TYPE = "AMD64"
  • OPERATING_SYSTEM = "Windows X64"
  • PRODUCT = "ASN.1/C"
  • COMPILER = "YES"
  • RUNTIME = "NODELOCKED"
  • MACHINE_TYPE = "Intel x86"
  • OPERATING_SYSTEM = "Windows NT/Windows 9x"

asn1 : C0284I: Syntax checking file 'C:\Program Files\OSS Nokalva\ossasn1\winx64.trial\10.7.0\asn1dflt\asn1dflt.msx64.zp8'.

asn1 : C0284I: Syntax checking file 'KerberosV5Spec2.asn'.

asn1 : C0284I: Syntax checking file 'KerberosV5-PK-INIT-SPEC.asn'.

asn1 : C0284I: Syntax checking file 'PKIX1Explicit88.asn'.

asn1 : C0284I: Syntax checking file 'PKINIT.asn'.

asn1 : C0284I: Syntax checking file 'MS-SFU-KILE.asn'.

asn1 : C0285I: Global checking abstract syntax.

KerberosV5-PK-INIT-SPEC.asn(33) : KerberosV5-PK-INIT-SPEC: warning A0073W: 'identified-organization', not 'org', is the standard identifier for 3.

asn1 : C0286I: Generating header file.

asn1 : C0287I: Generating control file.

asn1 : C1310I: No critical errors found, but message(s) were suppressed due to the compiler's default permissive mode. Compile with -noRelaxedMode to see all messages.

asn1 : C0245I: 110 warning messages suppressed, 0 informatory messages suppressed, 1 error message ignored.
To see the suppressed messages use the option -warningMessages.

asn1 : C0043I: 0 error messages, 1 warning message and 11 informatory messages issued.

file generated: kull_m_kerberos_oss_asn1_internal.h

elsewhere once i load the project using VStudio 2017 i get this error once compiliing:

Severity Code Description Project File Line Suppression State
Error (active) E0020 identifier "GSSAPI_Token" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 321
Error (active) E0020 identifier "GSSAPI_Token_PDU" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 320
Error (active) E0020 identifier "gssapi_Token" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 321
Error (active) E0020 identifier "NegotiationToken_PDU" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 370
Error (active) E0020 identifier "NegotiationToken" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error (active) E0020 identifier "negotiationToken" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error (active) E0020 identifier "negTokenInit_chosen" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 375
Error (active) E0020 identifier "NegTokenInit_mechToken_present" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 377
Error C2220 warning treated as error - no 'object' file generated kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_ntlm.c 703
Error C2065 'GSSAPI_Token_PDU': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 320
Error C2065 'GSSAPI_Token': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 321
Error C2065 'gssapi_Token': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 321
Error C2106 '=': left operand must be l-value kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 321
Error C2065 'gssapi_Token': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 351
Error C2065 'gssapi_Token': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 353
Error C2223 left of '->innerToken' must point to struct/union kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 353

...

anything i do wrong or miss ?
thanks in advance

@ofir286
Copy link

ofir286 commented May 5, 2021

I encountered the same problem and was able to fix it.
in the readme the command is as follows:
%ASN1C%\bin\asn1.exe ^
%ASN1C%\asn1dflt\asn1dflt.ms.zp4 ^
KerberosV5Spec2.asn KerberosV5-PK-INIT-SPEC.asn PKIX1Explicit88.asn PKINIT.asn MS-SFU-KILE.asn ^
-noSampleCode -der -root -CStyleComments -externalName kekeo_asn1 -messageFormat msvc -verbose ^
-headerFile kull_m_kerberos_oss_asn1_internal.h -soedFile kull_m_kerberos_oss_asn1_internal_Win32.c

it seems you need to add 3 more .asn files to the command (which are already in the folder) so just change it to this:
%ASN1C%\bin\asn1.exe ^
%ASN1C%\asn1dflt\asn1dflt.ms.zp4 ^
CredSSP.asn GSSAPI.asn KerberosV5-PK-INIT-SPEC.asn KerberosV5Spec2.asn MS-SFU-KILE.asn PKINIT.asn PKIX1Explicit88.asn SPNEGO.asn^
-noSampleCode -der -root -CStyleComments -externalName kekeo_asn1 -messageFormat msvc -verbose ^
-headerFile kull_m_kerberos_oss_asn1_internal.h -soedFile kull_m_kerberos_oss_asn1_internal_Win32.c

@johnjohnsp1
Copy link
Author

thanks for the reply, sorry im late, with your hint i was finally able to move on and get the kull_m_kerberos_oss_asn1_internal_x64.c compiled.
elsewhere once copied all the needed files into kekeo folders once i open the solution in VStudio 2019 i get all those errors:

Severity Code Description Project File Line Suppression State
Error C2065 'NegotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error C2106 '=': left operand must be l-value kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error C2198 'kuhl_m_tgt_deleg_from_negTokenInit': too few arguments for call kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 378
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 373
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 375
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 377
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 378
Error C2065 'negotiationToken': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 380
Error C2065 'NegotiationToken_PDU': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 370
Error C2065 'NegotiationToken_PDU': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 380
Error C2065 'negTokenInit_chosen': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 375
Error C2065 'NegTokenInit_mechToken_present': undeclared identifier kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 377
Message lnt-arithmetic-overflow A sub-expression may overflow before being assigned to a wider type. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 127
Message lnt-arithmetic-overflow A sub-expression may overflow before being assigned to a wider type. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 171
Error (active) E0020 identifier "NegotiationToken" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error (active) E0020 identifier "negotiationToken" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 371
Error (active) E0020 identifier "NegotiationToken_PDU" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 370
Error (active) E0020 identifier "negTokenInit_chosen" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 375
Error (active) E0020 identifier "NegTokenInit_mechToken_present" is undefined kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 377
Error C2223 left of '->choice' must point to struct/union kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 375
Error C2223 left of '->u' must point to struct/union kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 377
Error C2223 left of '->u' must point to struct/union kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 378
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 101
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 104
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 252
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 319
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 421
Message lnt-uninitialized-local Local variable is not initialized. kekeo C:\temp\kekeo\kekeo\modules\kuhl_m_tgt.c 605
Error C2220 warning treated as error - no 'object' file generated kekeo c:\temp\kekeo\kekeo\modules\kuhl_m_ntlm.c 703

but i think those are related to the code, did you made it by any chance
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants