additional feature: built in library name; plus: closes #70

This commit is contained in:
Marc Wäckerlin
2011-06-08 11:37:06 +00:00
parent 7d7eb1e238
commit 57bce10e86
9 changed files with 225 additions and 318 deletions

View File

@@ -113,6 +113,7 @@ class CryptokiEngine: public QObject, public openssl::Engine {
virtual std::string rsaSign(const std::string& in, unsigned int type) {
OPENSSL_LOG("log; type="<<type<<"; size="<<in.size());
OPENSSL_LOG(crypto::readable(in));
if (type != NID_md5_sha1) throw std::runtime_error("wrong sign type");
if (in.size() != 36) throw std::runtime_error("wrong msg size to sign");
OPENSSL_LOG("ready to sign");