summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/kexc25519s.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2015-12-04 16:41:28 +0000
committermarkus <markus@openbsd.org>2015-12-04 16:41:28 +0000
commit321f30e3f5b45d16472e86661b83433fc7519525 (patch)
tree63c02a5e0c654c473c9d490fd4d0ff38aade57d5 /usr.bin/ssh/kexc25519s.c
parentDrop pledge("getpw") and pwd.h and use the now usual (diff)
downloadwireguard-openbsd-321f30e3f5b45d16472e86661b83433fc7519525.tar.xz
wireguard-openbsd-321f30e3f5b45d16472e86661b83433fc7519525.zip
implement SHA2-{256,512} for RSASSA-PKCS1-v1_5 signatures (user and host auth)
based on draft-rsa-dsa-sha2-256-03.txt and draft-ssh-ext-info-04.txt; with & ok djm@
Diffstat (limited to 'usr.bin/ssh/kexc25519s.c')
-rw-r--r--usr.bin/ssh/kexc25519s.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/kexc25519s.c b/usr.bin/ssh/kexc25519s.c
index cf81ed8526d..eed1b5b7a0f 100644
--- a/usr.bin/ssh/kexc25519s.c
+++ b/usr.bin/ssh/kexc25519s.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexc25519s.c,v 1.9 2015/04/27 00:37:53 dtucker Exp $ */
+/* $OpenBSD: kexc25519s.c,v 1.10 2015/12/04 16:41:28 markus Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -132,8 +132,8 @@ input_kex_c25519_init(int type, u_int32_t seq, void *ctxt)
}
/* sign H */
- if ((r = kex->sign(server_host_private, server_host_public,
- &signature, &slen, hash, hashlen, ssh->compat)) < 0)
+ if ((r = kex->sign(server_host_private, server_host_public, &signature,
+ &slen, hash, hashlen, kex->hostkey_alg, ssh->compat)) < 0)
goto out;
/* send server hostkey, ECDH pubkey 'Q_S' and signed H */