diff options
author | lloyd <[email protected]> | 2006-09-06 19:48:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-06 19:48:09 +0000 |
commit | e00227828d80f9c9a17ef236586211faa01e4193 (patch) | |
tree | 2573533839150184038b18d7789eaef1ee5dd904 /src/x509find.cpp | |
parent | 7f176fd2259fcb395ca03751f19790eac15bd9ce (diff) |
Split PK_Key into Public_Key and Private_Key; these new classes merge in
the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
Diffstat (limited to 'src/x509find.cpp')
-rw-r--r-- | src/x509find.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/x509find.cpp b/src/x509find.cpp index 7a9d370a1..9a6f75fe4 100644 --- a/src/x509find.cpp +++ b/src/x509find.cpp @@ -101,28 +101,6 @@ std::vector<X509_Certificate> by_dns(const X509_Store& store, } /************************************************* -* Search for a certificate by key id * -*************************************************/ -std::vector<X509_Certificate> by_keyid(const X509_Store& store, u64bit key_id) - { - class KeyID_Match : public X509_Store::Search_Func - { - public: - bool match(const X509_Certificate& cert) const - { - std::auto_ptr<X509_PublicKey> key(cert.subject_public_key()); - return (key->key_id() == key_id); - } - KeyID_Match(u64bit id) : key_id(id) {} - private: - u64bit key_id; - }; - - KeyID_Match search_params(key_id); - return store.get_certs(search_params); - } - -/************************************************* * Search for a certificate by issuer/serial * *************************************************/ std::vector<X509_Certificate> by_iands(const X509_Store& store, |