From: Pekka Riikonen Date: Sat, 1 Sep 2007 08:51:43 +0000 (+0000) Subject: Both UN and HN must be present in SILC public key. X-Git-Tag: silc.toolkit.1.1.3~4 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=a9e2221f9ce01de76c34743f6a28cb57637e5872 Both UN and HN must be present in SILC public key. --- diff --git a/lib/silccrypt/silcpk.c b/lib/silccrypt/silcpk.c index 9b11852d..e4a00078 100644 --- a/lib/silccrypt/silcpk.c +++ b/lib/silccrypt/silcpk.c @@ -124,7 +124,7 @@ SilcBool silc_pkcs_silc_decode_identifier(const char *identifier, int len; /* Protocol says that at least UN and HN must be provided as identifier */ - if (!strstr(identifier, "UN=") && !strstr(identifier, "HN=")) { + if (!strstr(identifier, "UN=") || !strstr(identifier, "HN=")) { SILC_LOG_DEBUG(("The public does not have the required UN= and HN= " "identifiers")); return FALSE;