projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eb4dac
)
Check for signature errors.
author
Pekka Riikonen
<priikone@silcnet.org>
Fri, 11 Oct 2002 20:27:14 +0000
(20:27 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Fri, 11 Oct 2002 20:27:14 +0000
(20:27 +0000)
apps/silcd/server_query.c
patch
|
blob
|
history
diff --git
a/apps/silcd/server_query.c
b/apps/silcd/server_query.c
index 81b460e3281633eb51bde77fc656720bdc588582..9fdd184a2de6266efd13a30203b114d80a744461 100644
(file)
--- a/
apps/silcd/server_query.c
+++ b/
apps/silcd/server_query.c
@@
-1628,7
+1628,8
@@
SilcBuffer silc_server_query_reply_attrs(SilcServer server,
/* Finally compute the digital signature of all the data we provided
as an indication that we provided rightfull information, and this
also authenticates our public key. */
- if (silc_pkcs_sign_with_hash(server->pkcs, server->sha1hash,
+ if (silc_pkcs_get_key_len(server->pkcs) <= sizeof(sign) -1 &&
+ silc_pkcs_sign_with_hash(server->pkcs, server->sha1hash,
buffer->data, buffer->len,
sign, &sign_len)) {
pk.type = NULL;