Lines Matching defs:kex
42 #include "kex.h"
57 struct kex *kex = ssh->kex;
63 if ((client_key = EC_KEY_new_by_curve_name(kex->ec_nid)) == NULL) {
84 kex->ec_client_key = client_key;
85 kex->ec_group = group;
86 client_key = NULL; /* owned by the kex */
101 struct kex *kex = ssh->kex;
114 if (kex->verify_host_key == NULL) {
118 group = kex->ec_group;
119 client_key = kex->ec_client_key;
127 if (server_host_key->type != kex->hostkey_type ||
128 (kex->hostkey_type == KEY_ECDSA &&
129 server_host_key->ecdsa_nid != kex->hostkey_nid)) {
133 if (kex->verify_host_key(server_host_key, ssh) == -1) {
178 kex->hash_alg,
180 kex->client_version_string,
181 kex->server_version_string,
182 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
183 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
196 if (kex->session_id == NULL) {
197 kex->session_id_len = hashlen;
198 kex->session_id = malloc(kex->session_id_len);
199 if (kex->session_id == NULL) {
203 memcpy(kex->session_id, hash, kex->session_id_len);
210 if (kex->ec_client_key) {
211 EC_KEY_free(kex->ec_client_key);
212 kex->ec_client_key = NULL;