projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
silc_pkcs_sign API change, requires hash pointer as argument.
[silc.git]
/
lib
/
silccore
/
silcmessage.c
diff --git
a/lib/silccore/silcmessage.c
b/lib/silccore/silcmessage.c
index 19c1959effe1f3f298b90bd43c11d09f9de35690..2bb3ef9e1a62026968339d587edcad3bd6d005ce 100644
(file)
--- a/
lib/silccore/silcmessage.c
+++ b/
lib/silccore/silcmessage.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
6
Pekka Riikonen
+ Copyright (C) 1997 - 200
7
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-207,7
+207,8
@@
silc_message_signed_payload_encode(const unsigned char *message_payload,
/* Compute the hash and the signature. */
if (!silc_pkcs_sign(private_key, sign->data, silc_buffer_len(sign),
/* Compute the hash and the signature. */
if (!silc_pkcs_sign(private_key, sign->data, silc_buffer_len(sign),
- auth_data, sizeof(auth_data) - 1, &auth_len, hash)) {
+ auth_data, sizeof(auth_data) - 1, &auth_len,
+ TRUE, hash)) {
SILC_LOG_ERROR(("Could not compute signature"));
silc_buffer_clear(sign);
silc_buffer_free(sign);
SILC_LOG_ERROR(("Could not compute signature"));
silc_buffer_clear(sign);
silc_buffer_free(sign);