[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with auto_hi and other questions




hi All,
I have few questions regarding the overall use of SFL and the auto_hi test program
 
I am new to SFL and would like to be able to run the simplest program test that works doing somthing with an allready available configure file (and pri key,pub key certificate what ever etc..)
I was able to compile the auto_hi (without BSAFE which I dont have, I only have crypto++4.1 and a pkcs11 package) test program but run into some problems (which seems to be the inability to login to the free ctil )
my auto_hi program is compiled for use with the free crypto++ only.
 
I run the following g.cfg file:

output=1

number_of_runs=1

AddressBook=./certs/mabRecips.dat

Logins=./LoginsAllDLLFree2.cfg

hi_tests=auto_hi_g

 

[auto_hi_g]

LO_TestDN 304a310b300906035504061302555331163014060355040a130d555320474f5645524e4d454e543111300f060355040b130856444120536974653110300e0603550403130756444120504341

Generate_Cert ./certs/config.d/COMMONUser1.cfg COMMONUser1

Validate_Cert ./certs/config.d/BugsDsa2.out

 

the LoginsAllDLLFree2.cfg is simply:

[Logins]

Description=Logins for this execution!

Login1=DLLLoginFREE_FULL_LOGIN

[DLLLoginFREE_FULL_LOGIN]

LoginType=DLLLogin

BuildArgs=sm_free3DLL ElmoRocks ./free_ab.dat FREE3DLL

DLLFile=./sm_free3DLL

 

-------------------------------------------------------------------------------------------------

the first test seemd ok (LO_TestDN )

the Generate_Cert test return some error:

the third verify_cert fails and stops every thing  what is wrong(itried

CL_SignMsg::Sign ./hilevel/Create/SignedData_NOSIs.cfg

and others with similar resualts)?

The oputput:

 

E:\smpd\SMIME\test>E:\smpd\SMIME\test\auto_hi.exe  E:\smpd\SMIME\test\gCfg.cfg


SM_CfgCheckDN: filling; all DNs should contain data...        <<---------first test
SM_CfgCheckDN: Set/Decode
smDn=C=US@O=US GOVERNMENT@OU=VDA Site@CN=VDA PCA
CSM_DN Constructor
pSmDn=C=US@O=US GOVERNMENT@OU=VDA Site@CN=VDA PCA

SNACC Name Constructor pSmDn2=C=US@O=US GOVERNMENT@OU=VDA Site@CN=VDA PCA

encoded ASN Constructor pSmDn2=C=US@O=US GOVERNMENT@OU=VDA Site@CN=VDA PCA

SM_CfgCheckDN: successfully compared DNs.
SM_CfgCheckDN: successfully compared DNs.
SUCCESS ON 0:auto_hi_g LO_TestDN 304a310b300906035504061302555331163014060355040a130d555320474f5645524e4d454e543111300f0
60355040b130856444120536974653110300e0603550403130756444120504341  ######################
cfg_cert: no public_key= keyword, defaulted=|dummy_pubkey|.   <<---------second test
in SM_CfgSetLoginUseThis
sm_CfgCert: FAILED on SM_CfgCertSign call on Common1Login login.
SUCCESS ON 0:auto_hi_g Generate_Cert ./certs/config.d/COMMONUser1.out COMMONUser1 ######################
ERROR INFORMATION AND STACK:                                        <<---------third test

 ERROR INFORMATION: MUST HAVE valid Instance from Issuer
        ERROR CODE: 9999        SOURCE LINE NUMBER: 207
        FILE: E:\smpd\SMIME\testsrc\util\sm_Autohif.cpp
        FUNCTION: SM_HiTestValCert

#### auto_hi_g Validate_Cert ./certs/config.d/BugsDsa2.out  ###### IN E:\smpd\SMIME\testsrc\util\sm_Autohif.cpp, line 48
7.
SM_Autohi_MAIN IN E:\smpd\SMIME\testsrc\hilevel\sm_Autohi.cpp, line 172.

 

 
What I look for now is a simple one time unit test to see my build was OK.(do login encryot decrypt and exit)
I tried a simple C program that executes the SM_CreateCSMIME((SM_OBJECT **)&pCSMIME,
"sm_free3DLL.DLL",
"sm_FREE3DLL E:/sfl/SMIME/test/certs/DaisyRsaExts.out E:/sfl/SMIME/test/certs/certs/private.d/DaisyRsaF3X_8.dat ElmoRocks sm_FREE3") (my installation is in e:/sfl)
It compiles and links but gives the same error I get from the auto_hi program. what am I doing wrong ?
 
 
2.
 
    What need i do to integrate the same test for use with the free pkcs11 CTIL (using my pkcs11 vendore package) ?
   
 
3.
 
    General question:
    1.What is the hi_level function the application programer would use eventually what is the meening of functions prifix SM_,CL_,FREE_SMTI_, LO_ functions are they all just for the test util or used also in the application that i would write?
    2. As I understand a typicall program would first login(by way of INIT ?)differently  to a certine CTIL and then execute the hi_level  functions
     3. the connection between the pkcs11 CTIL and the pkcs11 code is done in run timeby way of dinamcly loading the pkcs11 dll ?
 
Thanks for the help.
Gilad
finkelg@xxxxxxx