Lines Matching refs:newkeys
180 struct newkeys *newkeys[MODE_MAX]; member
295 state->newkeys[MODE_IN] = state->newkeys[MODE_OUT] = NULL; in ssh_packet_set_connection()
491 kex_free_newkeys(state->newkeys[mode]); in ssh_packet_close()
940 if (state->newkeys[mode] != NULL) { in ssh_set_newkeys()
944 enc = &state->newkeys[mode]->enc; in ssh_set_newkeys()
945 mac = &state->newkeys[mode]->mac; in ssh_set_newkeys()
946 comp = &state->newkeys[mode]->comp; in ssh_set_newkeys()
957 free(state->newkeys[mode]); in ssh_set_newkeys()
960 if ((state->newkeys[mode] = ssh->kex->newkeys[mode]) == NULL) in ssh_set_newkeys()
962 ssh->kex->newkeys[mode] = NULL; in ssh_set_newkeys()
963 enc = &state->newkeys[mode]->enc; in ssh_set_newkeys()
964 mac = &state->newkeys[mode]->mac; in ssh_set_newkeys()
965 comp = &state->newkeys[mode]->comp; in ssh_set_newkeys()
1031 if (state->newkeys[mode] == NULL) in ssh_packet_enable_delayed_compress()
1033 comp = &state->newkeys[mode]->comp; in ssh_packet_enable_delayed_compress()
1066 if (state->newkeys[MODE_OUT] != NULL) { in ssh_packet_send2_wrapped()
1067 enc = &state->newkeys[MODE_OUT]->enc; in ssh_packet_send2_wrapped()
1068 mac = &state->newkeys[MODE_OUT]->mac; in ssh_packet_send2_wrapped()
1069 comp = &state->newkeys[MODE_OUT]->comp; in ssh_packet_send2_wrapped()
1551 if (state->newkeys[MODE_IN] != NULL) { in ssh_packet_read_poll2()
1552 enc = &state->newkeys[MODE_IN]->enc; in ssh_packet_read_poll2()
1553 mac = &state->newkeys[MODE_IN]->mac; in ssh_packet_read_poll2()
1554 comp = &state->newkeys[MODE_IN]->comp; in ssh_packet_read_poll2()
2328 if (ssh->state->newkeys[mode] == NULL) in ssh_packet_set_postauth()
2330 comp = &ssh->state->newkeys[mode]->comp; in ssh_packet_set_postauth()
2369 struct newkeys *newkey; in newkeys_to_blob()
2372 if ((newkey = ssh->state->newkeys[mode]) == NULL) in newkeys_to_blob()
2482 struct newkeys *newkey = NULL; in newkeys_from_blob()
2535 ssh->kex->newkeys[mode] = newkey; in newkeys_from_blob()