aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/certstor_sql
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-21 20:01:29 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:06 -0500
commit7dbb31c5778ac1158fbf0979739f6c3c55a007f5 (patch)
tree5ac57dca1f107022b38f393680882cf94f1e0f09 /src/lib/x509/certstor_sql
parentec7c6e4d3d70077199523fa1b0f3ee17b2f86de2 (diff)
Add find_cert_by_pubkey_sha1 to Certificate_Store_In_Memory
Diffstat (limited to 'src/lib/x509/certstor_sql')
-rw-r--r--src/lib/x509/certstor_sql/certstor_sql.cpp7
-rw-r--r--src/lib/x509/certstor_sql/certstor_sql.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/x509/certstor_sql/certstor_sql.cpp b/src/lib/x509/certstor_sql/certstor_sql.cpp
index dfb8c5d78..4dceae305 100644
--- a/src/lib/x509/certstor_sql/certstor_sql.cpp
+++ b/src/lib/x509/certstor_sql/certstor_sql.cpp
@@ -78,6 +78,13 @@ Certificate_Store_In_SQL::find_cert(const X509_DN& subject_dn, const std::vector
return cert;
}
+std::shared_ptr<const X509_Certificate>
+Certificate_Store_In_SQL::find_cert_by_pubkey_sha1(const std::vector<byte>& /*key_hash*/) const
+ {
+ // TODO!
+ return nullptr;
+ }
+
std::shared_ptr<const X509_CRL>
Certificate_Store_In_SQL::find_crl_for(const X509_Certificate& subject) const
{
diff --git a/src/lib/x509/certstor_sql/certstor_sql.h b/src/lib/x509/certstor_sql/certstor_sql.h
index 0025884f9..0f493c56b 100644
--- a/src/lib/x509/certstor_sql/certstor_sql.h
+++ b/src/lib/x509/certstor_sql/certstor_sql.h
@@ -41,6 +41,9 @@ class BOTAN_DLL Certificate_Store_In_SQL : public Certificate_Store
virtual std::shared_ptr<const X509_Certificate>
find_cert(const X509_DN& subject_dn, const std::vector<byte>& key_id) const override;
+ std::shared_ptr<const X509_Certificate>
+ find_cert_by_pubkey_sha1(const std::vector<byte>& key_hash) const override;
+
/**
* Returns all subject DNs known to the store instance.
*/