+Thu Dec 5 16:35:23 EET 2002 Pekka Riikonen <priikone@silcnet.org>
+
+ * Added ignore_message_signatures setting which can be used
+ to ignore signatures in messages. Affected files are
+ irssi/src/silc/core/client_ops.c, silc-core.c.
+
Wed Dec 4 21:08:52 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
* Verify signature payload for signed messages. Affected files
or [F] if the signature verificationn failed. If you do not have
the sender's public key you can fetch it with GETKEY command.
+If you do want to verify the signatures from received messages
+you may do /SET ignore_messages_signatures on. In this case
+signatures in messages are ignored and they appear as normal
+non-signed messages. By default, all message signatures are
+verified.
+
Examples:
/SMSG Foobar Very authenticated message
/* If the messages is digitally signed, verify it, if possible. */
if (flags & SILC_MESSAGE_FLAG_SIGNED) {
- SilcMessageSignedPayload sig = silc_message_get_signature(payload);
-
- verified = verify_message_signature(sender, sig, payload);
+ if (!settings_get_bool("ignore_message_signatures")) {
+ SilcMessageSignedPayload sig = silc_message_get_signature(payload);
+ verified = verify_message_signature(sender, sig, payload);
+ } else {
+ flags &= ~SILC_MESSAGE_FLAG_SIGNED;
+ }
}
if (flags & SILC_MESSAGE_FLAG_DATA) {
/* If the messages is digitally signed, verify it, if possible. */
if (flags & SILC_MESSAGE_FLAG_SIGNED) {
- SilcMessageSignedPayload sig = silc_message_get_signature(payload);
-
- verified = verify_message_signature(sender, sig, payload);
+ if (!settings_get_bool("ignore_message_signatures")) {
+ SilcMessageSignedPayload sig = silc_message_get_signature(payload);
+ verified = verify_message_signature(sender, sig, payload);
+ } else {
+ flags &= ~SILC_MESSAGE_FLAG_SIGNED;
+ }
}
if (flags & SILC_MESSAGE_FLAG_DATA) {
settings_add_int("server", "key_exchange_rekey_secs", 3600);
settings_add_int("server", "connauth_request_secs", 2);
settings_add_int("server", "heartbeat", 300);
+ settings_add_bool("server", "ignore_message_signatures", FALSE);
/* Requested Attributes settings */
settings_add_bool("silc", "attr_allow", TRUE);