projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5e532
)
Both UN and HN must be present in SILC public key.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 1 Sep 2007 08:51:43 +0000
(08:51 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 1 Sep 2007 08:51:43 +0000
(08:51 +0000)
lib/silccrypt/silcpk.c
patch
|
blob
|
history
diff --git
a/lib/silccrypt/silcpk.c
b/lib/silccrypt/silcpk.c
index 9b11852de30515006ce90cb5804c933e8f5eef5c..e4a000788c79f71fdae9da4e7516470d498d612f 100644
(file)
--- 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;