From e00227828d80f9c9a17ef236586211faa01e4193 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 6 Sep 2006 19:48:09 +0000 Subject: Split PK_Key into Public_Key and Private_Key; these new classes merge in the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey. --- src/x509find.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/x509find.cpp') diff --git a/src/x509find.cpp b/src/x509find.cpp index 7a9d370a1..9a6f75fe4 100644 --- a/src/x509find.cpp +++ b/src/x509find.cpp @@ -100,28 +100,6 @@ std::vector by_dns(const X509_Store& store, return store.get_certs(search_params); } -/************************************************* -* Search for a certificate by key id * -*************************************************/ -std::vector 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 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 * *************************************************/ -- cgit v1.2.3