summaryrefslogtreecommitdiff
path: root/src/modules/extra/ssl_cert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/ssl_cert.h')
-rw-r--r--src/modules/extra/ssl_cert.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/extra/ssl_cert.h b/src/modules/extra/ssl_cert.h
index fbbd821ac..d7ef70dca 100644
--- a/src/modules/extra/ssl_cert.h
+++ b/src/modules/extra/ssl_cert.h
@@ -48,6 +48,16 @@ class ssl_cert
return empty;
}
+ const std::string& GetFingerprint()
+ {
+ ssl_data_iter ssldi = data.find("fingerprint");
+
+ if (ssldi != data.end())
+ return ssldi->second;
+ else
+ return empty;
+ }
+
bool IsTrusted()
{
ssl_data_iter ssldi = data.find("trusted");