diff options
author | lloyd <[email protected]> | 2006-09-06 19:52:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-06 19:52:59 +0000 |
commit | 34e84e5ba997949120e5c99011dbf4e770db1278 (patch) | |
tree | fbd9fe7f5a0e1e972385d253c5ea1fb998697f98 /checks/pk.cpp | |
parent | 559e2860f0716dc5c40697a08a790d3b7c42ce8e (diff) |
Rename X509_PublicKey and PKCS8_PrivateKey to the new types within the
self-test sources
Diffstat (limited to 'checks/pk.cpp')
-rw-r--r-- | checks/pk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checks/pk.cpp b/checks/pk.cpp index be6891dbb..4ff798e00 100644 --- a/checks/pk.cpp +++ b/checks/pk.cpp @@ -346,7 +346,7 @@ u32bit validate_rsa_enc_pkcs8(const std::string& algo, decoding method we use */ DataSource_Memory keysource((const byte*)str[0].c_str(), str[0].length()); - PKCS8_PrivateKey* privkey = PKCS8::load_key(keysource, pass); + Private_Key* privkey = PKCS8::load_key(keysource, pass); RSA_PrivateKey* rsapriv = dynamic_cast<RSA_PrivateKey*>(privkey); if(!rsapriv) @@ -466,7 +466,7 @@ u32bit validate_rsa_ver_x509(const std::string& algo, DataSource_Memory keysource((const byte*)str[0].c_str(), str[0].length()); - X509_PublicKey* key = X509::load_key(keysource); + Public_Key* key = X509::load_key(keysource); RSA_PublicKey* rsakey = dynamic_cast<RSA_PublicKey*>(key); @@ -550,7 +550,7 @@ u32bit validate_dsa_sig(const std::string& algo, decoding method we use */ DataSource_Memory keysource((const byte*)str[0].c_str(), str[0].length()); - PKCS8_PrivateKey* privkey = PKCS8::load_key(keysource, pass); + Private_Key* privkey = PKCS8::load_key(keysource, pass); DSA_PrivateKey* dsapriv = dynamic_cast<DSA_PrivateKey*>(privkey); if(!dsapriv) @@ -577,7 +577,7 @@ u32bit validate_dsa_ver(const std::string& algo, throw Exception("Invalid input from pk_valid.dat"); DataSource_Memory keysource((const byte*)str[0].c_str(), str[0].length()); - X509_PublicKey* key = X509::load_key(keysource); + Public_Key* key = X509::load_key(keysource); DSA_PublicKey* dsakey = dynamic_cast<DSA_PublicKey*>(key); |