22 #include "../Digest.h"
23 #include "../cert/X509Cert.h"
24 #include "../../Conf.h"
25 #include "../../log.h"
58 const std::vector<PKCS11Signer::PKCS11Cert> &certificates)
const throw(
SignException)
60 if(certificates.empty())
62 for(std::vector<PKCS11Signer::PKCS11Cert>::const_iterator
i = certificates.begin();
i < certificates.end(); ++
i)
64 std::vector<digidoc::X509Cert::KeyUsage> usage =
i->cert.getKeyUsage();
75 if( result == NID_sha1 )
79 for( std::vector<std::string>::iterator
i = pol.begin();
i != pol.end(); ++
i )
81 if(
i->find(
"1.3.6.1.4.1.10015.1.2.", 22) == 0 ||
82 i->find(
"1.3.6.1.4.1.10015.3.2.", 22) == 0)