summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-01-24 23:12:26 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-01-24 23:12:26 +0000
commit960e402f9234e807fff0202492476369ea82ae4c (patch)
treecc9b39c9d1cdde4e380127be89a11da7e3ee72f8 /plugins/New_GPG/src/main.cpp
parent1a47d440397cfbdb7353584997a05123b7964a32 (diff)
implemented basic encrypted filetransfer capability checking (untested)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3271 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/main.cpp')
-rwxr-xr-xplugins/New_GPG/src/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp
index 6dd3a33e50..2c6640a43d 100755
--- a/plugins/New_GPG/src/main.cpp
+++ b/plugins/New_GPG/src/main.cpp
@@ -2304,6 +2304,26 @@ void InitCheck()
CallService(svc, 0, (LPARAM)&cap);
}
}
+ if(bFileTransfers)
+ {
+ int count = 0;
+ PROTOACCOUNT **accounts;
+ ProtoEnumAccounts(&count, &accounts);
+ ICQ_CUSTOMCAP cap;
+ cap.cbSize = sizeof(ICQ_CUSTOMCAP);
+ cap.hIcon = 0;
+ strcpy(cap.name, "GPG Encrypted FileTransfers");
+ strcpy(cap.caps, "GPG FileTransfer");
+
+ for(int i = 0; i < count; i++)
+ {
+ char svc[64];
+ strcpy(svc, accounts[i]->szProtoName);
+ strcat(svc, PS_ICQ_ADDCAPABILITY);
+ if(ServiceExists(svc))
+ CallService(svc, 0, (LPARAM)&cap);
+ }
+ }
}
void ImportKey()