aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/key.cpp')
-rw-r--r--lang/cpp/src/key.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp
index b18cfaee..9cbd188b 100644
--- a/lang/cpp/src/key.cpp
+++ b/lang/cpp/src/key.cpp
@@ -247,6 +247,26 @@ bool Key::isDeVs() const
return true;
}
+bool Key::hasCertify() const
+{
+ return key && key->has_certify;
+}
+
+bool Key::hasSign() const
+{
+ return key && key->has_sign;
+}
+
+bool Key::hasEncrypt() const
+{
+ return key && key->has_encrypt;
+}
+
+bool Key::hasAuthenticate() const
+{
+ return key && key->has_authenticate;
+}
+
const char *Key::issuerSerial() const
{
return key ? key->issuer_serial : nullptr ;