diff options
author | Damien Miller <djm@mindrot.org> | 2014-01-10 10:58:53 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-01-10 10:58:53 +1100 |
commit | b3051d01e505c9c2dc00faab472a0d06fa6b0e65 (patch) | |
tree | c0ca49b5fc4e5e1a066157b4dbd9c68cfcd41d63 /kex.h | |
parent | e00e413dd16eb747fb2c15a099971d91c13cf70f (diff) |
- djm@cvs.openbsd.org 2014/01/09 23:20:00
[digest.c digest.h hostfile.c kex.c kex.h kexc25519.c kexc25519c.c]
[kexc25519s.c kexdh.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c]
[kexgexs.c key.c key.h roaming_client.c roaming_common.c schnorr.c]
[schnorr.h ssh-dss.c ssh-ecdsa.c ssh-rsa.c sshconnect2.c]
Introduce digest API and use it to perform all hashing operations
rather than calling OpenSSL EVP_Digest* directly. Will make it easier
to build a reduced-feature OpenSSH without OpenSSL in future;
feedback, ok markus@
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.58 2013/11/07 11:58:27 dtucker Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.59 2014/01/09 23:20:00 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -133,7 +133,7 @@ struct Kex { | |||
133 | Buffer peer; | 133 | Buffer peer; |
134 | sig_atomic_t done; | 134 | sig_atomic_t done; |
135 | int flags; | 135 | int flags; |
136 | const EVP_MD *evp_md; | 136 | int hash_alg; |
137 | int ec_nid; | 137 | int ec_nid; |
138 | char *client_version_string; | 138 | char *client_version_string; |
139 | char *server_version_string; | 139 | char *server_version_string; |
@@ -170,17 +170,17 @@ void | |||
170 | kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, | 170 | kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int, |
171 | BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *); | 171 | BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *); |
172 | void | 172 | void |
173 | kexgex_hash(const EVP_MD *, char *, char *, char *, int, char *, | 173 | kexgex_hash(int, char *, char *, char *, int, char *, |
174 | int, u_char *, int, int, int, int, BIGNUM *, BIGNUM *, BIGNUM *, | 174 | int, u_char *, int, int, int, int, BIGNUM *, BIGNUM *, BIGNUM *, |
175 | BIGNUM *, BIGNUM *, u_char **, u_int *); | 175 | BIGNUM *, BIGNUM *, u_char **, u_int *); |
176 | #ifdef OPENSSL_HAS_ECC | 176 | #ifdef OPENSSL_HAS_ECC |
177 | void | 177 | void |
178 | kex_ecdh_hash(const EVP_MD *, const EC_GROUP *, char *, char *, char *, int, | 178 | kex_ecdh_hash(int, const EC_GROUP *, char *, char *, char *, int, |
179 | char *, int, u_char *, int, const EC_POINT *, const EC_POINT *, | 179 | char *, int, u_char *, int, const EC_POINT *, const EC_POINT *, |
180 | const BIGNUM *, u_char **, u_int *); | 180 | const BIGNUM *, u_char **, u_int *); |
181 | #endif | 181 | #endif |
182 | void | 182 | void |
183 | kex_c25519_hash(const EVP_MD *, char *, char *, char *, int, | 183 | kex_c25519_hash(int, char *, char *, char *, int, |
184 | char *, int, u_char *, int, const u_char *, const u_char *, | 184 | char *, int, u_char *, int, const u_char *, const u_char *, |
185 | const BIGNUM *, u_char **, u_int *); | 185 | const BIGNUM *, u_char **, u_int *); |
186 | 186 | ||