/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | kex.c | 60 static void kex_do_hook(Kex *kex); 152 kex_finish(Kex *kex) in kex_finish() argument 173 kex->done = 1; in kex_finish() 174 kex->initial_kex_done = 1; /* never to be cleared once set */ in kex_finish() 175 buffer_clear(&kex->peer); in kex_finish() 177 kex->flags &= ~KEX_INIT_SENT; in kex_finish() 178 xfree(kex->name); in kex_finish() 179 kex->name = NULL; in kex_finish() 183 kex_send_kexinit(Kex *kex) in kex_send_kexinit() argument 189 if (kex == NULL) { in kex_send_kexinit() [all …]
|
H A D | kexdhs.c | 44 kexdh_server(Kex *kex) in kexdh_server() argument 55 dh_gen_key(dh, kex->we_need * 8); in kexdh_server() 60 if (kex->load_host_key == NULL) in kexdh_server() 62 server_host_key = kex->load_host_key(kex->hostkey_type); in kexdh_server() 64 fatal("Unsupported hostkey type %d", kex->hostkey_type); in kexdh_server() 104 kex->client_version_string, in kexdh_server() 105 kex->server_version_string, in kexdh_server() 106 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexdh_server() 107 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexdh_server() 117 if (kex->session_id == NULL) { in kexdh_server() [all …]
|
H A D | kexdhc.c | 44 kexdh_client(Kex *kex) in kexdh_client() argument 55 dh_gen_key(dh, kex->we_need * 8); in kexdh_client() 76 if (server_host_key->type != kex->hostkey_type) in kexdh_client() 78 if (kex->verify_host_key == NULL) in kexdh_client() 80 if (kex->verify_host_key(server_host_key) == -1) in kexdh_client() 116 kex->client_version_string, in kexdh_client() 117 kex->server_version_string, in kexdh_client() 118 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexdh_client() 119 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexdh_client() 135 if (kex->session_id == NULL) { in kexdh_client() [all …]
|
H A D | kexgexs.c | 45 kexgex_server(Kex *kex) in kexgex_server() argument 54 if (kex->load_host_key == NULL) in kexgex_server() 56 server_host_key = kex->load_host_key(kex->hostkey_type); in kexgex_server() 58 fatal("Unsupported hostkey type %d", kex->hostkey_type); in kexgex_server() 101 dh_gen_key(dh, kex->we_need * 8); in kexgex_server() 147 kex->client_version_string, in kexgex_server() 148 kex->server_version_string, in kexgex_server() 149 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgex_server() 150 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgex_server() 162 if (kex->session_id == NULL) { in kexgex_server() [all …]
|
H A D | kexgexc.c | 45 kexgex_client(Kex *kex) in kexgex_client() argument 55 nbits = dh_estimate(kex->we_need * 8); in kexgex_client() 98 dh_gen_key(dh, kex->we_need * 8); in kexgex_client() 121 if (server_host_key->type != kex->hostkey_type) in kexgex_client() 123 if (kex->verify_host_key == NULL) in kexgex_client() 125 if (kex->verify_host_key(server_host_key) == -1) in kexgex_client() 164 kex->client_version_string, in kexgex_client() 165 kex->server_version_string, in kexgex_client() 166 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgex_client() 167 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgex_client() [all …]
|
H A D | kexgsss.c | 56 kexgss_server(Kex *kex) in kexgss_server() argument 78 if (kex->load_host_key != NULL && in kexgss_server() 80 server_host_key = kex->load_host_key(kex->hostkey_type); in kexgss_server() 87 ssh_gssapi_oid_of_kexname(kex->name, &oid); in kexgss_server() 168 dh_gen_key(dh, kex->we_need * 8); in kexgss_server() 184 kex->client_version_string, in kexgss_server() 185 kex->server_version_string, in kexgss_server() 186 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgss_server() 187 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgss_server() 195 if (kex->session_id == NULL) { in kexgss_server() [all …]
|
H A D | kexgssc.c | 57 kexgss_client(Kex *kex) in kexgss_client() argument 79 ssh_gssapi_oid_of_kexname(kex->name, &mech); in kexgss_client() 89 dh_gen_key(dh, kex->we_need * 8); in kexgss_client() 106 kex->options.gss_deleg_creds, token_ptr, &send_tok); in kexgss_client() 276 kex->client_version_string, in kexgss_client() 277 kex->server_version_string, in kexgss_client() 278 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgss_client() 279 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgss_client() 294 if (server_host_key && kex->accept_host_key != NULL) in kexgss_client() 295 (void) kex->accept_host_key(server_host_key); in kexgss_client() [all …]
|
H A D | ssh-gss.c | 279 ssh_gssapi_modify_kex(Kex *kex, gss_OID_set mechs, char **proposal) in ssh_gssapi_modify_kex() argument 288 if (kex == NULL || proposal == NULL || in ssh_gssapi_modify_kex() 295 if (kex->mechs == GSS_C_NULL_OID_SET && mechs == GSS_C_NULL_OID_SET) in ssh_gssapi_modify_kex() 298 if (kex->mechs == GSS_C_NULL_OID_SET || mechs == GSS_C_NULL_OID_SET) in ssh_gssapi_modify_kex() 302 if (kex->mechs->count == mechs->count) { in ssh_gssapi_modify_kex() 307 &kex->mechs->elements[i], mechs, &present); in ssh_gssapi_modify_kex() 317 if (matches == kex->mechs->count) in ssh_gssapi_modify_kex() 341 (void) gss_release_oid_set(&min, &kex->mechs); /* ok if !kex->mechs */ in ssh_gssapi_modify_kex() 365 kex->mechs = dup_mechs; /* remember what we offer now */ in ssh_gssapi_modify_kex() 376 } else if (!kex->server) { in ssh_gssapi_modify_kex() [all …]
|
H A D | llib-lssh | 76 #include <kex.h>
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_export.c | 1021 struct exportdata *kex; in exportfs() local 1221 kex = &exi->exi_export; in exportfs() 1233 kex->ex_version = STRUCT_FGET(uexi, ex_version); in exportfs() 1234 if (kex->ex_version != EX_CURRENT_VERSION) { in exportfs() 1238 kex->ex_version); in exportfs() 1245 kex->ex_seccnt = STRUCT_FGET(uexi, ex_seccnt); in exportfs() 1246 if (kex->ex_seccnt < 1) { in exportfs() 1251 kex->ex_path = STRUCT_FGETP(uexi, ex_path); in exportfs() 1252 kex->ex_pathlen = STRUCT_FGET(uexi, ex_pathlen); in exportfs() 1253 kex->ex_flags = STRUCT_FGET(uexi, ex_flags); in exportfs() [all …]
|
H A D | nfs4_srv_ns.c | 152 struct exportdata *kex; in pseudo_exportfs() local 181 kex = &exi->exi_export; in pseudo_exportfs() 182 kex->ex_flags = EX_PSEUDO; in pseudo_exportfs() 185 kex->ex_pathlen = vpathlen + strlen(PSEUDOFS_SUFFIX); in pseudo_exportfs() 186 kex->ex_path = kmem_alloc(kex->ex_pathlen + 1, KM_SLEEP); in pseudo_exportfs() 189 (void) strcpy(kex->ex_path, vp->v_path); in pseudo_exportfs() 190 (void) strcpy(kex->ex_path + vpathlen, PSEUDOFS_SUFFIX); in pseudo_exportfs()
|
H A D | nfs_log.c | 196 struct exportdata *kex; in nfslog_setup() local 200 kex = &exi->exi_export; in nfslog_setup() 201 ASSERT(kex->ex_flags & EX_LOG); in nfslog_setup() 215 if (strcmp(lbp->lb_path, kex->ex_log_buffer) == 0) { in nfslog_setup() 220 kex->ex_log_buffer)); in nfslog_setup() 233 if ((nlbp = log_buffer_create(kex->ex_log_buffer)) == NULL) { in nfslog_setup() 244 if (strcmp(lbp->lb_path, kex->ex_log_buffer) == 0) { in nfslog_setup() 254 "after allocation\n", kex->ex_log_buffer)); in nfslog_setup()
|
/titanic_41/usr/src/cmd/ssh/ssh/ |
H A D | gss-clnt.c | 52 ssh_gssapi_client_kex_hook(Kex *kex, char **proposal) in ssh_gssapi_client_kex_hook() argument 56 if (kex == NULL || kex->serverhost == NULL) in ssh_gssapi_client_kex_hook() 59 ssh_gssapi_client_mechs(kex->serverhost, &mechs); in ssh_gssapi_client_kex_hook() 60 ssh_gssapi_modify_kex(kex, mechs, proposal); in ssh_gssapi_client_kex_hook()
|
H A D | sshconnect2.c | 99 Kex *kex; in ssh_kex2() local 166 kex = kex_setup(host, myproposal, kex_hook); in ssh_kex2() 167 kex_start(kex); in ssh_kex2() 168 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client; in ssh_kex2() 169 kex->kex[KEX_DH_GEX_SHA1] = kexgex_client; in ssh_kex2() 171 kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_client; in ssh_kex2() 172 kex->options.gss_deleg_creds = options.gss_deleg_creds; in ssh_kex2() 174 kex->client_version_string=client_version_string; in ssh_kex2() 175 kex->server_version_string=server_version_string; in ssh_kex2() 176 kex->verify_host_key=&verify_host_key_callback; in ssh_kex2() [all …]
|
/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | sshd.c | 1933 Kex *kex; in prepare_for_ssh2_kex() local 1994 kex = kex_setup(NULL, myproposal, kex_hook); in prepare_for_ssh2_kex() 2008 kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; in prepare_for_ssh2_kex() 2009 kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; in prepare_for_ssh2_kex() 2011 kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; in prepare_for_ssh2_kex() 2013 kex->server = 1; in prepare_for_ssh2_kex() 2014 kex->client_version_string = client_version_string; in prepare_for_ssh2_kex() 2015 kex->server_version_string = server_version_string; in prepare_for_ssh2_kex() 2016 kex->load_host_key = &get_hostkey_by_type; in prepare_for_ssh2_kex() 2017 kex->host_key_index = &get_hostkey_index; in prepare_for_ssh2_kex() [all …]
|
H A D | gss-serv.c | 67 ssh_gssapi_server_kex_hook(Kex *kex, char **proposal) in ssh_gssapi_server_kex_hook() argument 71 if (kex == NULL || !kex->server) in ssh_gssapi_server_kex_hook() 75 ssh_gssapi_modify_kex(kex, mechs, proposal); in ssh_gssapi_server_kex_hook()
|
H A D | altprivsep.c | 325 Kex *kex = (Kex *)ctxt; in altprivsep_rekey() local 327 if (kex == NULL) in altprivsep_rekey() 337 kex->done = 0; in altprivsep_rekey() 344 kex->done = 1; in altprivsep_rekey()
|
/titanic_41/usr/src/cmd/ssh/include/ |
H A D | ssh-gss.h | 100 void ssh_gssapi_modify_kex(Kex *kex, gss_OID_set mechs, char **proposal); 101 void ssh_gssapi_server_kex_hook(Kex *kex, char **proposal); 102 void ssh_gssapi_client_kex_hook(Kex *kex, char **proposal);
|
H A D | kex.h | 156 void (*kex[KEX_MAX])(Kex *); member
|
/titanic_41/usr/src/cmd/ssh/libssh/ |
H A D | Makefile.com | 51 kex.o \
|
/titanic_41/usr/src/cmd/ssh/ssh-keyscan/ |
H A D | ssh-keyscan.c | 365 c->c_kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client; in keygrab_ssh2() 366 c->c_kex->kex[KEX_DH_GEX_SHA1] = kexgex_client; in keygrab_ssh2()
|
/titanic_41/usr/src/cmd/ssh/doc/ |
H A D | ChangeLog | 187 [kex.c kex.h myproposal.h ssh.h ssh2.h sshconnect2.c sshd.c dh.c dh.h] 210 [auth.c auth1.c auth2.c authfile.c cipher.c cipher.h kex.c kex.h] 221 [kex.h packet.c] 783 [cipher.c kex.c servconf.c] 895 [kex.c log-client.c log-server.c login.c match.c mpaux.c mpaux.h nchan.c] 1047 [kex.c kex.h myproposal.h sshconnect2.c sshd.c] 1140 [auth2.c channels.c clientloop.c compat compat.h dsa.c kex.c] 1406 - [clientloop.c compat.c dsa.c kex.c sshd.c] 1408 - [kex.c kex.h sshconnect.c sshd.c] 1453 - [kex.h kex.c hmac.h hmac.c dsa.c dsa.h] [all …]
|
/titanic_41/usr/src/cmd/ssh/ |
H A D | README.altprivsep | 480 kex.c 572 $SRC/cmd/ssh/libssh/common/kex.c 634 The kex.c and packet.c files are minimally modified, primarily to
|