summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /plugins/New_GPG/src
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'plugins/New_GPG/src')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index 4b39a37edd..e8f3ad030e 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -118,7 +118,7 @@ INT_PTR SendKey(WPARAM w, LPARAM)
szMessage = g_plugin.getMStringA("GPGPubKey"); //try to get default key as fallback in any way
if (!szMessage.IsEmpty()) {
- BYTE enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
+ uint8_t enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
g_plugin.setByte(hContact, "GPGEncryption", 0);
ProtoChainSend(hContact, PSS_MESSAGE, 0, (LPARAM)szMessage.c_str());
std::string msg = "Public key ";
@@ -138,7 +138,7 @@ INT_PTR SendKey(WPARAM w, LPARAM)
INT_PTR ToggleEncryption(WPARAM w, LPARAM)
{
MCONTACT hContact = (MCONTACT)w;
- BYTE enc;
+ uint8_t enc;
if (db_mc_isMeta(hContact)) {
enc = g_plugin.getByte(metaGetMostOnline(hContact), "GPGEncryption");
if (MessageBox(nullptr, TranslateT("Do you want to toggle encryption for all subcontacts?"), TranslateT("Metacontact detected"), MB_YESNO) == IDYES) {
@@ -784,7 +784,7 @@ void RemoveHandlers()
bool isContactSecured(MCONTACT hContact)
{
- BYTE gpg_enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
+ uint8_t gpg_enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
if (!gpg_enc) {
if (globals.debuglog)
globals.debuglog << "encryption is turned off for " + toUTF8(Clist_GetContactDisplayName(hContact));
@@ -1210,7 +1210,7 @@ void SendErrorMessage(MCONTACT hContact)
if (!g_plugin.bSendErrorMessages)
return;
- BYTE enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
+ uint8_t enc = g_plugin.getByte(hContact, "GPGEncryption", 0);
g_plugin.setByte(hContact, "GPGEncryption", 0);
ProtoChainSend(hContact, PSS_MESSAGE, 0, (LPARAM)"Unable to decrypt PGP encrypted message");
HistoryLog(hContact, "Error message sent", DBEF_SENT);