From a9e2221f9ce01de76c34743f6a28cb57637e5872 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 1 Sep 2007 08:51:43 +0000 Subject: [PATCH] Both UN and HN must be present in SILC public key. --- lib/silccrypt/silcpk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.24.0