Using SFL to verify

"Margaret Cyrzan" <[email protected]>
Newsgroups gmane.ietf.sfl
Message-ID <[email protected]>
I'm having some trouble using SFL to verify a message that I received. I'm 
using the Crypto++ library, and verify is failing. Here is my code:

	// put it in the instance list in pCSMIME
	if (pCSMIME->m_pCSInsts == NULL)
	{
		if ((pCSMIME->m_pCSInsts = new CSM_CSInstLst) == NULL)
			return E_OUTOFMEMORY;
	}

	// Set up a RSA instance
	if ((pNewInstance = new CSM_CSInst) == NULL)
		return E_OUTOFMEMORY;
	pCSMIME->m_pCSInsts->AppendL(pNewInstance);

	// generate a new FREE CTI class
	if ((pFree = new CSM_Free3(rsa)) == NULL)
		return E_OUTOFMEMORY;
	// CSM_Free3 constructor sets Alg IDs
	// now, fill in what we can in the instance
	// store token interface pointer
	pNewInstance->SetTokenInterface((CSM_TokenInterface *)pFree);

	// Create the contentInfoMsg class with the content which was
	// loaded in a buffer earlier.
	CSM_ContentInfoMsg contentInfo(&buf);
	if(contentInfo.IsSignedData())
	{
		CSM_MsgToVerify msg(&contentInfo);
		msg.PreProc(pCSMIME);
		long l = msg.Verify(pCSMIME);
	}


Maybe someone can suggest what I'm missing or using incorrectly. Right now 
verify doesn't look like it does anything.  Do I have to load certificates 
into the instance? If so, how do I extract them from the e-mail and put them 
into the instance?

Thanks,

Margaret

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.