summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/utilities.cpp b/utilities.cpp
index 6988fed..07623e1 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -500,3 +500,15 @@ bool isContactSecured(HANDLE hContact)
return false;
}
+bool isContactHaveKey(HANDLE hContact)
+{
+ TCHAR *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T(""));
+ if(_tcslen(key) > 0)
+ {
+ mir_free(key);
+ return true;
+ }
+ mir_free(key);
+ return false;
+}
+