From a25f1f21ec07217b9a05c292bf92f395418feee8 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 18 Nov 2002 17:48:40 +0000 Subject: [PATCH] Deprecated No Reply SKE flag, introduced IV Included flag. --- lib/silcske/silcske.c | 7 +++++++ lib/silcske/silcske.h | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/silcske/silcske.c b/lib/silcske/silcske.c index 547ffb66..4fd34f78 100644 --- a/lib/silcske/silcske.c +++ b/lib/silcske/silcske.c @@ -693,6 +693,13 @@ SilcSKEStatus silc_ske_responder_start(SilcSKE ske, SilcRng rng, remote_payload->flags |= SILC_SKE_SP_FLAG_PFS; } + /* Disable IV Included flag if requested */ + if (remote_payload->flags & SILC_SKE_SP_FLAG_IV_INCLUDED && + !(flags & SILC_SKE_SP_FLAG_IV_INCLUDED)) { + SILC_LOG_DEBUG(("We do not support IV Included flag")); + remote_payload->flags &= ~SILC_SKE_SP_FLAG_IV_INCLUDED; + } + /* Parse and select the security properties from the payload */ payload = silc_calloc(1, sizeof(*payload)); status = silc_ske_select_security_properties(ske, version, diff --git a/lib/silcske/silcske.h b/lib/silcske/silcske.h index 4db724bf..597cea10 100644 --- a/lib/silcske/silcske.h +++ b/lib/silcske/silcske.h @@ -273,10 +273,10 @@ typedef struct { * SOURCE */ typedef enum { - SILC_SKE_SP_FLAG_NONE = 0x00, /* No flags */ - SILC_SKE_SP_FLAG_NO_REPLY = 0x01, /* No reply required to payload */ - SILC_SKE_SP_FLAG_PFS = 0x02, /* Perfect Forward Secrecy */ - SILC_SKE_SP_FLAG_MUTUAL = 0x04, /* Mutual authentication */ + SILC_SKE_SP_FLAG_NONE = 0x00, /* No flags */ + SILC_SKE_SP_FLAG_IV_INCLUDED = 0x01, /* IV included in ciphertexts */ + SILC_SKE_SP_FLAG_PFS = 0x02, /* Perfect Forward Secrecy */ + SILC_SKE_SP_FLAG_MUTUAL = 0x04, /* Mutual authentication */ } SilcSKESecurityPropertyFlag; /***/ -- 2.24.0