Problem when verifying a signed message without SignerInfo
tuzi <[email protected]> Thu, 5 Jul 2001 17:40:18 +0800
| Newsgroups | gmane.ietf.sfl |
|---|---|
| Organization | [email protected] |
| Message-ID | <[email protected]> |
imc-sflé”›
When I use the function CSM_MsgToVerify::Verify(pCSMIME) to verify
a signed mail which doesn't include any SignerInfo ( set SetIncludeOrigCertsFlag(0)
when you generate it) mail, I found some flaw, or say bug, in SFL. As I traced into the
CSM_DataToVerify::Verify[1] function, I found that the program will only do
some empty loop because the condition "if (tmpSI->AccessCerts())" will never be met.
Does this mean that such a mail will never be actually verified?
My question is: If user A send me a signed mail wich does not contain
any SignerInfo. And fortunately I can obtain A's public key and Signerinfo
from a earlier mail. How can I use his public key to verify the new mail?
Thank you very much.
[1]There are too many funcitons that named Verify. The prototype of the one that
I referred to is
CSM_DataToVerify::Verify(
CSMIME *pCSMIME, // IN, logged-on Instance list
CSM_Buffer *pOriginalEncapContent,// IN, optional content if not in SD
CSM_MsgCertCrls *pMsgCertCrls, // IN, Originator(s) certs+++
CSM_MsgSignerInfos *pMsgSignerInfos)
sincerely
tuzi
[email protected]