Greetings!
I've changed my implementation of Russian Gost2001 I've added so I want
to use X509Data tag as signer info.
I added an initialization of data to xmlSecMSCryptoCertAdopt:
=================
#ifndef XMLSEC_NO_GOST2001
if (!strcmp(pCert->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId,
szOID_MAGPRO_PUBKEY_SIGN_R3410_2001_CP) ||
!strcmp(pCert->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId,
szOID_MAGPRO_PUBKEY_SIGN_R3410_2001)) {
data = xmlSecKeyDataCreate(xmlSecMSCryptoKeyDataX509Id);
if(data == NULL) {
xmlSecError(XMLSEC_ERRORS_HERE,
NULL,
"xmlSecKeyDataCreate",
XMLSEC_ERRORS_R_XMLSEC_FAILED,
"xmlSecMSCryptoKeyDataGost2001Id");
return(NULL);
}
}
#endif /* XMLSEC_NO_GOST2001 */
===================
but I get an asssertion into xmlSecMSCryptoKeyDataAdoptCert:
========
func=:file=..\src\mscrypto\certkeys.c:line=411:obj=unknown:subj=xmlSecKeyDataCheckSize(data,
xmlSecMSCryptoKeyDataSize):error=100:assertion: ;last error=0
(0x00000000);last error msg=The operation completed successfully.
========
What's my fault?
Thank you!
--
SY, Dmitry Belyavsky (ICQ UIN 11116575)
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec