mirror of git://anongit.mindrot.org/openssh.git
upstream: remove kex_derive_keys_bn wrapper; no unused since the
DH-like KEX methods have moved to KEM from markus@ ok djm@ OpenBSD-Commit-ID: bde9809103832f349545e4f5bb733d316db9a060
This commit is contained in:
parent
92dda34e37
commit
4b83e2a2cc
19
kex.c
19
kex.c
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: kex.c,v 1.147 2019/01/21 10:20:12 djm Exp $ */
|
||||
/* $OpenBSD: kex.c,v 1.148 2019/01/21 10:33:49 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
|
||||
*
|
||||
|
@ -1038,23 +1038,6 @@ kex_derive_keys(struct ssh *ssh, u_char *hash, u_int hashlen,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef WITH_OPENSSL
|
||||
int
|
||||
kex_derive_keys_bn(struct ssh *ssh, u_char *hash, u_int hashlen,
|
||||
const BIGNUM *secret)
|
||||
{
|
||||
struct sshbuf *shared_secret;
|
||||
int r;
|
||||
|
||||
if ((shared_secret = sshbuf_new()) == NULL)
|
||||
return SSH_ERR_ALLOC_FAIL;
|
||||
if ((r = sshbuf_put_bignum2(shared_secret, secret)) == 0)
|
||||
r = kex_derive_keys(ssh, hash, hashlen, shared_secret);
|
||||
sshbuf_free(shared_secret);
|
||||
return r;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
kex_load_hostkey(struct ssh *ssh, struct sshkey **pubp, struct sshkey **prvp)
|
||||
{
|
||||
|
|
3
kex.h
3
kex.h
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: kex.h,v 1.102 2019/01/21 10:29:56 djm Exp $ */
|
||||
/* $OpenBSD: kex.h,v 1.103 2019/01/21 10:33:49 djm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
|
||||
|
@ -196,7 +196,6 @@ int kex_send_kexinit(struct ssh *);
|
|||
int kex_input_kexinit(int, u_int32_t, struct ssh *);
|
||||
int kex_input_ext_info(int, u_int32_t, struct ssh *);
|
||||
int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *);
|
||||
int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *);
|
||||
int kex_send_newkeys(struct ssh *);
|
||||
int kex_start_rekex(struct ssh *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue