projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350f7d6
)
Fixed signature format (alg name).
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 19:10:03 +0000
(19:10 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 19:10:03 +0000
(19:10 +0000)
lib/silcssh/silcssh_pkcs.c
patch
|
blob
|
history
diff --git
a/lib/silcssh/silcssh_pkcs.c
b/lib/silcssh/silcssh_pkcs.c
index 9417ad75e7da6359f576e0df8ccc782b66be90e8..900f108be1f963ec9b04f20894f0c56ec37a20d7 100644
(file)
--- a/
lib/silcssh/silcssh_pkcs.c
+++ b/
lib/silcssh/silcssh_pkcs.c
@@
-860,12
+860,17
@@
static void silc_pkcs_ssh_sign_cb(SilcBool success,
{
SilcSshSign sign = context;
SilcBufferStruct sig;
+ const char *name;
+
+ if (!strcmp(sign->privkey->pkcs->name, "rsa"))
+ name = "ssh-rsa";
+ else
+ name = "ssh-dss";
memset(&sig, 0, sizeof(sig));
if (silc_buffer_format(&sig,
- SILC_STR_UI_INT(7),
- SILC_STR_UI32_STRING("ssh-"),
- SILC_STR_UI32_STRING(sign->privkey->pkcs->name),
+ SILC_STR_UI_INT(strlen(name)),
+ SILC_STR_UI32_STRING(name),
SILC_STR_UI_INT(signature_len),
SILC_STR_DATA(signature, signature_len),
SILC_STR_END) < 0) {