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

RE: init CTIL libs (fwd)



Jiri:

The sfl API document describes the parameters you seek:

...
6.8.1 CSM_AppLogin Construction Members
CSM_AppLogin::CSM_AppLogin();
CSM_AppLogin(char *lpszDLLName, char *lpszStartupArgs);

The second constructor calls the Windows based "AddDLLLibrary(...)" call
described below.  This call dynamically loads a DLL file and associate the
specified CTIL Login(s) with the CSMIME instance that CSM_AppLogin inherits.
6.8.2 CSM_AppLogin Member Functions
#if defined (WIN32) || defined (SOLARIS)
   void AddLogin(char *lpszDLLName, char *lpszBuildupArgs);
   CSM_TokenInterface *LookupDLLLibrary(AlgorithmIdentifier *pAlgID);
   void AddDLLLibrary(char *lpszDLLName, char *lpszBuildupArgs);
#endif

This method allows an application to add additional logins to a CSMIME
instance.  Just as in the case with the constructor, the private key and
password are optional.
...





The first method in the CSM_Free3 class is obsolete (using an address book,
our 1st attempt).  All logins are now DLLs loaded (or .so files on Linux).
You must specify the shared object file name as the first parameter (e.g.
"./test/sm_free3DLL.dll" or "../lib/libsm_free3DLL.so" on Linux), the second
parameter defines the login details for that CTIL (e.g. sm_Free3 they could
be "sm_free3DLL ./certs/private.d/bobbobbobPKCS12.p12 bobbobbob" as an
argument list where "bobbobbob" is the password, at least 8 bytes).  The
test program demonstrates the call to CSM_AppLogin in
./testsrc/util/sm_CfgLogins.cpp.  The older reference you found was dropped
in order to foce the user to specify a specific login DLL/so file name; our
code at one time attempted to align a login based on the certificate public
key OIDs, but this proved unreliable.

It is also possible to directly link to the CTIL of interest (only 1 for
convenience); this is demonstrated by the Windows project autoAlg (none has
been built on Linux; should be easy to create a Makefile).  This allows
direct access to the CTILs extra functionality, but is not suggested and is
overly restrictive (and especially since we have already built the libraries
to be shared object dynamically loaded).  Even if you directly link, you
need to setup the logins with a private key/cert or PKCS12 packet for the
login (some are provided in the test directories ./test/certs/private.d,
etc.; see ./test/LoginsAlld.cfg for example logins).

Bob Colestock
VDA

-----Original Message-----
From: Jiri Skrabal [mailto:xskrabal@xxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, November 14, 2000 1:46 PM
To: Robert.Colestock@xxxxxxxxxxxxxxxx
Subject: RE: init CTIL libs (fwd)


I'm sorry, if you received this mail twice, but it is very 
important for me.
I have sent the original email part to imc-smime-dev@xxxxxxx 
and John Pawling answered me, that ...
Thanks

---------- Forwarded message ----------
Date: Tue, 14 Nov 2000 14:19:56 -0500
From: "Pawling, John" <John.Pawling@xxxxxxxxxxxxxxxx>
To: 'Jiri Skrabal' <xskrabal@xxxxxxxxxxxxxxxxxxx>
Subject: RE: init CTIL libs

Jiri,

Robert.Colestock@xxxxxxxxxxxxxxxx will answer your message very soon.

===========================================
John Pawling, John.Pawling@xxxxxxxxxxxxxxxx
Getronics Government Solutions, LLC
===========================================


-----Original Message-----
From: Jiri Skrabal [mailto:xskrabal@xxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, November 14, 2000 10:10 AM
To: imc-smime-dev@xxxxxxx
Subject: init CTIL libs


Hi everyone,
I'm working on smime application under RedHat Linux 6.2 OS using S/MIME
freeware libraries. I have v1.8 SFL release and crypto++ library - got 
from www.armadillo.huntsville.al.us/software/smime
(This web is down at this time - does anybody know why?)

I have some troubles with logging into FREE3 CTIL.
I know two ways how to do that:
	- using void SMFree3Init(CSMIME *pCSMIME, char *pszPassword,
                     char *pszAddressBook, char *pszPrefix);
	  function.
	- or using CSM_AppLogin class

In the first case is required (as a third parameter) addressbook file.
I don't know how its structure looks like. How can I obtain any example 
addressbook file? Can somebody tell me the structure or place where 
I can get this file? (Or way how to obtain one)
The same problem is with sfl test environment. There are used config
files and also addressbook files (mentioned in .cfg files)

In the second case I don't know which values are required to pass as 
the second parameter in class constructor. I look into the source code of
SFL and there is a member function defined like this:

//////////////////////////////////////////////////////////////////
#ifdef BOB_NOT_USED
//
//
void CSM_AppLogin::AddLogin(
	CSM_Buffer &CertBuf,  		// IN, public key and algs
      	CSM_Buffer *pSFLPrivateKey,	// IN, private key for signing/
                                      	//     encryption ops OPTIONAL
      	char *lpszPassword)        	// IN, password to decrypt
privatekey
{
.
.
.
}

Isn't this type of logging supported yet? (This function is not in
header file - class declaration)

Can anybody help me how to solve this problem?

--Jiri Skrabal
email: xskrabal@xxxxxxxxxx