diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2016-05-02 08:49:04 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2016-05-02 08:49:04 +0000 |
commit | c023ffcde78b7ab576e1ea3f34aafba31470877d (patch) | |
tree | 1528611b6288037a1483a5985b86f6a7e0653b2a /usr.bin/ssh/kex.h | |
parent | e745dff34c8b0de52da4f946c480d9cae831323c (diff) |
fix signed/unsigned errors reported by clang-3.7; add
sshbuf_dup_string() to replace a common idiom of
strdup(sshbuf_ptr()) with better safety checking;
feedback and ok markus@
Diffstat (limited to 'usr.bin/ssh/kex.h')
-rw-r--r-- | usr.bin/ssh/kex.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/kex.h b/usr.bin/ssh/kex.h index 88a9084c1ec..76f3bfa48ca 100644 --- a/usr.bin/ssh/kex.h +++ b/usr.bin/ssh/kex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kex.h,v 1.76 2016/02/08 10:57:07 djm Exp $ */ +/* $OpenBSD: kex.h,v 1.77 2016/05/02 08:49:03 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -191,8 +191,9 @@ int kex_ecdh_hash(int, const EC_GROUP *, const char *, const char *, const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *); -int kex_c25519_hash(int, const char *, const char *, const char *, size_t, - const char *, size_t, const u_char *, size_t, const u_char *, const u_char *, +int kex_c25519_hash(int, const char *, const char *, + const u_char *, size_t, const u_char *, size_t, + const u_char *, size_t, const u_char *, const u_char *, const u_char *, size_t, u_char *, size_t *); void kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) |