https://gitlab.synchro.net/main/sbbs/-/commit/0ae4768c6a552b34d01c416f
Added Files:
src/ssh/.gitattributes src/ssh/.github/workflows/ci.yml src/ssh/cmake/DeuceSSHABI.cmake DeuceSSHCheckState.cmake DeuceSSHInstallConfig.cmake.in DeuceSSHOptions.cmake src/ssh/deucessh-abi.h deucessh-result.h src/ssh/docs/consumer-migration.md src/ssh/examples/server-io.h server-output.h server-port.h server-shell.h zlib-comp.c zlib-comp.h src/ssh/kex/dh-fixed.c mlkem768x25519-sha256.c workspace.c workspace.h x25519-ops.h src/ssh/key_algo/client-key.c client-key.h key-context-botan.h key-context-openssl.h key-file-common.h key-file-openssl.h key-rsa-cache.h key-text.h key-wire.h native-key-botan.cpp native-key-botan.h native-key-pool.c native-key-pool.h signature-result.c signature-result.h src/ssh/mac/hmac-openssl.h src/ssh/posix/timespec.c src/ssh/ssh-packet.h ssh-ring.h ssh-thread-shim.h ssh-time.h ssh-timespec.h ssh-window.h src/ssh/standards/rfc10042.txt rfc3526.txt rfc8268.txt rfc9142.txt rfc9941.txt src/ssh/test/abi-driver.c abi.cmake accept_callback_cases.h accept_failure_cases.h allocation_direct_controls.py allocation_owner_controls.py allocation_pair_fixture.h assertion_controls.py auth_callback_cases.h auth_continuation_cases.h auth_discovery_fixture.h auth_framing_cases.h auth_helper_cases.h auth_post_success_cases.h auth_request_boundary_cases.h auth_result_fixture.h auth_state_wire_cases.h break_handler_cases.h break_handler_peer.c break_ssh_interop.py break_ssh_peer.go build_break_ssh_peer.py build_options.cmake build_options_fixture.cmake bytebuf_ring_cases.h src/ssh/test/c_standard_fixture/options.cpp src/ssh/test/channel_control_cases.h channel_id_cases.h channel_pair_cases.h channel_params_cases.h channel_unit_controls.py channel_unit_fixture.h channel_unit_owner_cases.h channel_worker_cases.h check_abi.cmake check_mlkem_hash_vectors.py check_output.cmake check_output_test.cmake client-keys.cmake client_example_driver.c client_example_interop.py close_outcome_cases.h close_reservation_cases.h compression_fixture.h compression_libssh_client.c compression_peer_server.c condition_wait_cases.h conn_actor_cases.h conn_callback_cases.h conn_callback_fixture.h conn_consume_cases.h conn_consume_fixture.h conn_eof_cases.h conn_eof_fixture.h conn_event_fixture.h conn_flow_cases.h conn_flow_fixture.h conn_helper_cases.h conn_lifecycle_cases.h conn_lifecycle_fixture.h conn_storage_cases.h conn_storage_fixture.h conn_stream_fixture.h conn_wire_cases.h conn_wire_fixture.h conn_zc_cases.h conn_zc_fixture.h control_framing_cases.h counter_controls.py crypto_contract_cases.h src/ssh/test/data/NIST-ACVP-NOTICE.txt mlkem_acvp_sources.json mlkem_hash_sources.json src/ssh/test/dh_group_result_cases.h dh_group_result_provider.c dh_group_result_provider.h direct_kex_cases.h direct_kex_fixture.h dssh_test_botan_base64.h dssh_test_botan_cipher.cpp dssh_test_botan_cipher.h dssh_test_botan_hash.cpp dssh_test_botan_hash.h dssh_test_botan_mac.cpp dssh_test_botan_mac.h dssh_test_counter.h dssh_test_key_file.h dssh_test_value.h event_body_cases.h event_delivery_cases.h event_overflow_cases.h event_text_cases.h event_text_queue_cases.h fatal_driver_child.c fatal_driver_policy.cmake fixture_owner_controls.py fixture_writer.h gather_batch_cases.h gather_full_cases.h generate_sntrup_rejection.py half_close_cases.h import_mlkem_acvp.py incoming_control_cases.h kbi_prompt_count_cases.h kbi_result_cases.h kbi_result_provider.c kbi_result_provider.h kex_io_cases.h kex_result_fixture.h kex_state_cases.h key_availability_cases.h key_borrow_cases.h key_context_fixture.h key_context_fixture_botan.cpp key_fd_exec_probe.c key_file_cpp_alloc.cpp key_file_cpp_alloc.h key_file_cpp_bridge.c key_material_cases.h key_publication_cpp.cpp key_publication_cpp.h key_text_reference.h key_validation.py key_wire_vectors.h language_cases.h libssh_example_server.c libssh_mac_interop.py libssh_mac_peer.c lifecycle_phase_cases.h log_queue_cases.h mlkem_acvp.h mlkem_acvp_data.c mlkem_acvp_vectors.h mlkem_hash_retirement.h mock_io_controls.py mock_io_win32.h module_counter_controls.py module_init_cases.h negotiation_pair_cases.h notification_flag_cases.h openssh_interop.py openssh_peer.c src/ssh/test/package-consumer/CMakeLists.txt consumer.c src/ssh/test/packet_bounds_cases.h packet_wire_cases.h password_result_cases.h password_result_provider.c password_result_provider.h peer_channel_id_cases.h peer_thread_failures.c peer_thread_failures.py post_close_cases.h provider_boundary.c provider_boundary_cpp.cpp queued_control_cases.h read_result_cases.h receive_entry_cases.h registration_cases.h request_framing_cases.h rsa_cache_reference.h runner_controls.py selftest_completion_controls.py selftest_constructor_controls.h selftest_constructor_controls.py selftest_metadata.h selftest_metadata_controls.h selftest_metadata_controls.py selftest_owner_controls.py selftest_rekey.h selftest_rekey_controls.h selftest_rekey_controls.py selftest_socket_controls.h selftest_socket_controls.py selftest_stream_controls.py selftest_wire_controls.h selftest_wire_controls.py session_pair_fixture.h setup_mailbox_cases.h signature_auth_result_cases.h signature_copy_fixture.h signature_result_cases.h signature_result_provider.c signature_result_provider.h sntrup_drbg.h sntrup_kat_cases.h stream_body_cases.h terminal_mode_cases.h termination_callback_cases.h termination_wakeup_cases.h test_accept_callback_peer.c test_acvp_io.c test_application_threads.c test_assertions.c test_assertions_cpp.cpp test_auth_actions.c test_base64_botan_faults.cpp test_base64_storage.cpp test_botan_cipher_faults.cpp test_botan_mac_faults.cpp test_client_keys.c test_comp.c test_comp.h test_comp_zlib.c test_config_setup.c test_counter.c test_crypto_botan_faults.cpp test_curve_storage.c test_dh_rng.c test_dhgex_contract.c test_dhgex_storage.c test_event_peer.c test_example_client.c test_fatal_driver.c test_frozen_keys.c test_hash_provider.c test_hybrid_storage.c test_kex_failure.c test_kex_framing.c test_kex_workspace.c test_key_descriptors.c test_key_file_bio.c test_key_file_import.c test_key_generation.c test_key_permissions_win32.c test_key_publication.c test_key_save_policy.c test_key_text.c test_key_validation.c test_key_wire.c test_mlkem_acvp.c test_mlkem_acvp_botan.cpp test_mlkem_encoding.c test_mlkem_hash.c test_mlkem_parity.cpp test_mlkem_poly.c test_mlkem_selection.c test_mlkem_vector.c test_mlkem_wrapper.c test_mock_io.c test_module_contract.c test_module_counters.c test_native_key_pool.c test_packet_sizes.c test_portable_api.c test_release_entry.c test_ring_sizes.c test_rng_provider.c test_rsa_cache.c test_runner.c test_selftest_owner.c test_server_io.c test_server_lifecycle.c test_server_output.c test_server_startup.c test_session_init.c test_signature_storage.c test_signature_storage_gaps.c test_sntrup.c test_sntrup_arithmetic.c test_stateless.c test_stateless.h test_threads_shim_posix.c test_threads_shim_win32.c test_time.c test_timespec.c test_vendor_glue.c test_visibility.c test_wait_observation.c test_x25519.c transmit_rekey_cases.h transport_clock_cases.h transport_compression_cases.h transport_ext_info_cases.h transport_frame_cases.h transport_identification_cases.h transport_module_cases.h transport_offer_cases.h transport_pair_cases.h transport_query_cases.h transport_rekey_cases.h transport_state_cases.h transport_transition_cases.h transport_wire_trace_cases.h tx_slot_cases.h src/ssh/test/vectors/sha3-cavp/SHA3_256LongMsg.rsp SHA3_256ShortMsg.rsp SHA3_512LongMsg.rsp SHA3_512ShortMsg.rsp SHAKE128LongMsg.rsp SHAKE128ShortMsg.rsp SHAKE128VariableOut.rsp SHAKE256LongMsg.rsp SHAKE256ShortMsg.rsp SHAKE256VariableOut.rsp src/ssh/test/vectors/sntrup761.int sntrup761.reject sntrup761.rsp src/ssh/test/visibility_archive.c visibility_probe.c visibility_probe.h window_credit_cases.h windows.cmake x25519_fixture.h x25519_fixture_botan.cpp x25519_reference.py x25519_vectors.h
Modified Files:
src/deucegate/server.c src/ssh/AGENTS.md CMakeLists.txt LICENSE.md README.md RULES.md src/ssh/comp/none.c none.h src/ssh/crypto/botan.cpp openssl.c src/ssh/deucessh-algorithms.h deucessh-auth.h deucessh-comp.h deucessh-conn.h deucessh-crypto.h deucessh-enc.h deucessh-kex.h deucessh-key-algo.h deucessh-lang.h deucessh-mac.h deucessh-portable.h deucessh.h src/ssh/docs/api-design-4254.md audit-4250.md audit-4251.md audit-4252.md audit-4253.md audit-4254.md audit-design.md audit-dsohowto.md audit-hardening.md audit-portability-vendor.md audit-rules-modules.md design-channel-io-api.md src/ssh/enc/aes128-cbc-botan.c aes128-cbc-botan.cpp aes128-cbc-openssl.c aes256-ctr-botan.c aes256-ctr-botan.cpp aes256-ctr-openssl.c aes256-ctr.h none.c none.h src/ssh/examples/client.c kbi-game-server.c server.c src/ssh/kex/curve25519-sha256-botan.c curve25519-sha256-botan.cpp curve25519-sha256-openssl.c curve25519-sha256-ops.h curve25519-sha256.c curve25519-sha256.h dh-gex-groups.c dh-gex-groups.h dh-gex-sha256-botan.c dh-gex-sha256-botan.cpp dh-gex-sha256-openssl.c dh-gex-sha256-ops.h dh-gex-sha256.c dh-gex-sha256.h hybrid-pq-kex-ops.h hybrid-pq-kex.c libcrux_mlkem768_sha3.h mlkem768.c sntrup761.c sntrup761x25519-sha512-botan.c sntrup761x25519-sha512-botan.cpp sntrup761x25519-sha512-openssl.c src/ssh/key_algo/private-key-file-posix.c private-key-file-win32.c private-key-file.h rsa-sha2-256-botan.c rsa-sha2-256-botan.cpp rsa-sha2-256-openssl.c rsa-sha2-256.h rsa-sha2-512-botan.c rsa-sha2-512-botan.cpp rsa-sha2-512-openssl.c ssh-ed25519-botan.c ssh-ed25519-botan.cpp ssh-ed25519-openssl.c ssh-ed25519.h src/ssh/mac/hmac-sha2-256-botan.c hmac-sha2-256-botan.cpp hmac-sha2-256-openssl.c hmac-sha2-256.h hmac-sha2-512-botan.c hmac-sha2-512-botan.cpp hmac-sha2-512-openssl.c none.c none.h src/ssh/posix/threads.c threads.h src/ssh/ssh-auth.c ssh-conn.c ssh-internal.h ssh-trans.c ssh-trans.h ssh.c src/ssh/test/CMakeLists.txt src/ssh/test/c_standard_fixture/CMakeLists.txt src/ssh/test/dssh_test.h dssh_test_alloc.c dssh_test_alloc.h dssh_test_internal.h dssh_test_ossl.c dssh_test_ossl.h dssh_test_wait.h kex_test.c mock_alloc.c mock_io.c mock_io.h test_algo_enc.c test_algo_key.c test_algo_mac.c test_alloc.c test_asymmetric_mac.c test_auth.c test_botan_algo_key.cpp test_botan_transport.cpp test_chan.c test_conn.c test_crypto.c test_dhgex_provider.h test_enc.c test_enc.h test_framework.c test_mac.c test_mac.h test_selftest.c test_thread_errors.c test_transport.c test_transport_errors.c src/ssh/win32/threads.c threads.h src/syncterm/Wren.adoc ssh.c ssh.h wren_bind.c
Removed Files:
src/ssh/kex/mlkem768x25519-sha256-botan.c mlkem768x25519-sha256-botan.cpp
Log Message:
Update DeuceSSH and migrate SyncTERM and DeuceGate APIs
Import DeuceSSH through 922eda4 (2026-11-20), including independent
client keys and the updated authentication and result ownership APIs.
Load SyncTERM client keys into each session and expose the selected public
key to Wren. Update authentication discovery, continuation results, keyboard-interactive response leases and directional transport queries.
Retry channel I/O when send-window credit is temporarily unavailable.
Adapt DeuceGate's password callback to producer-owned results.
Validation: 15,768 OpenSSL tests and 87 focused Botan tests pass, plus
both application builds, selected application tests, live OpenSSH key
and password logins, and sequential SyncTERM reconnects. The standalone
example test passes after explicitly building its excluded client target.