comparison mcabber/src/jabglue.c @ 1194:03d8fafe8104

Remove a warning when gpgme is disabled
author Mikael Berthe <mikael@lilotux.net>
date Sat, 21 Apr 2007 15:10:57 +0200
parents c4da23bf8958
children 6f602d3270a4
comparison
equal deleted inserted replaced
1193:43a3c8a6d103 1194:03d8fafe8104
1509 else 1509 else
1510 scr_LogPrint(LPRINT_LOGNORM, 1510 scr_LogPrint(LPRINT_LOGNORM,
1511 "Warning: you're not connected to the server."); 1511 "Warning: you're not connected to the server.");
1512 } 1512 }
1513 1513
1514 #ifdef HAVE_GPGME
1514 // keys_mismatch(key, expectedkey) 1515 // keys_mismatch(key, expectedkey)
1515 // Return TRUE if both keys are non-null and "expectedkey" doesn't match 1516 // Return TRUE if both keys are non-null and "expectedkey" doesn't match
1516 // the end of "key". 1517 // the end of "key".
1517 // If one of the keys is null, return FALSE. 1518 // If one of the keys is null, return FALSE.
1518 // If expectedkey is less than 8 bytes long, return TRUE. 1519 // If expectedkey is less than 8 bytes long, return TRUE.
1536 if (lek < lk) 1537 if (lek < lk)
1537 key += lk - lek; 1538 key += lk - lek;
1538 1539
1539 return strcasecmp(key, expectedkey); 1540 return strcasecmp(key, expectedkey);
1540 } 1541 }
1542 #endif
1541 1543
1542 // check_signature(barejid, resourcename, xmldata, text) 1544 // check_signature(barejid, resourcename, xmldata, text)
1543 // Verify the signature (in xmldata) of "text" for the contact 1545 // Verify the signature (in xmldata) of "text" for the contact
1544 // barejid/resourcename. 1546 // barejid/resourcename.
1545 // xmldata is the 'jabber:x:signed' stanza. 1547 // xmldata is the 'jabber:x:signed' stanza.