From b9548a4f0c0c9315928814fb629f4e52fbebe66c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 24 Aug 2010 00:30:00 +0300 Subject: modified: init.cpp modified: messages.cpp modified: new_gpg.rc modified: new_gpg.vcproj modified: options.cpp modified: srmm.cpp modified: utilities.cpp --- utilities.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utilities.cpp') 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; +} + -- cgit v1.2.3