@@ -2342,24 +2342,24 @@ main(int ac, char **av)
23422342 notify_hostkeys (ssh );
23432343
23442344#ifdef WITH_OPENSSL
2345- /* if we are using aes-ctr there can be issues in either a fork or sandbox
2346- * so the initial aes-ctr is defined to point to the original single process
2347- * evp. After authentication we'll be past the fork and the sandboxed privsep
2348- * so we repoint the define to the multithreaded evp. To start the threads we
2349- * then force a rekey
2350- */
2351- /* We now explicitly call the mt cipher in cipher.c so we don't need
2352- * the cipher_reset_multithreaded() anymore. We just need to
2353- * force a rekey -cjr 09/08/2022 */
2354- const void * cc = ssh_packet_get_send_context (the_active_state );
2355-
2356- /* only rekey if necessary. If we don't do this gcm mode cipher breaks */
2357- if (strstr (cipher_ctx_name (cc ), "ctr" )) {
2358- debug ("Single to Multithreaded CTR cipher swap - server request" );
2359- /* cipher_reset_multithreaded(); */
2360- ssh_packet_set_authenticated (ssh );
2361- packet_request_rekeying ();
2362- }
2345+ /* if we are using aes-ctr there can be issues in either a fork or sandbox
2346+ * so the initial aes-ctr is defined to point to the original single process
2347+ * evp. After authentication we'll be past the fork and the sandboxed privsep
2348+ * so we repoint the define to the multithreaded evp. To start the threads we
2349+ * then force a rekey
2350+ */
2351+ /* We now explicitly call the mt cipher in cipher.c so we don't need
2352+ * the cipher_reset_multithreaded() anymore. We just need to
2353+ * force a rekey -cjr 09/08/2022 */
2354+ const void * cc = ssh_packet_get_send_context (the_active_state );
2355+
2356+ /* only rekey if necessary. If we don't do this gcm mode cipher breaks */
2357+ if (strstr (cipher_ctx_name (cc ), "ctr" )) {
2358+ debug ("Single to Multithreaded CTR cipher swap - server request" );
2359+ /* cipher_reset_multithreaded(); */
2360+ ssh_packet_set_authenticated (ssh );
2361+ packet_request_rekeying ();
2362+ }
23632363#endif
23642364
23652365 /* Start session. */
0 commit comments