Skip to content

Conversation

@Roytak
Copy link
Collaborator

@Roytak Roytak commented Nov 15, 2025

Refactored the server_config.c file for better maintainability and scalability.
Changes include:

  • updated modules to the latest versions
  • deleted APIs: nc_server_config_oper_get_hostkey_algs, nc_server_config_oper_get_kex_algs, nc_server_config_oper_get_encryption_algs and nc_server_config_oper_get_mac_algs
  • new APIs: nc_server_config_oper_get_supported_ssh_algs and nc_server_config_oper_get_supported_tls_algs
  • Configuration is now rollbacked to the old one on error, sockets are not closed on change and call home threads are killed on error.

@Roytak Roytak force-pushed the refactor-server-config branch 2 times, most recently from 16c7e63 to 447068b Compare November 17, 2025 04:47
@Roytak Roytak marked this pull request as ready for review November 18, 2025 01:33
@Roytak Roytak force-pushed the refactor-server-config branch from 447068b to 25b28db Compare November 18, 2025 09:33
Rewrite server configuration. Adds robustness. Rollback support.
Readability and scalability improved by utilizing YANG tree structure.
Do not fail when an unsupported key format is encountered. Instead
just possibly fail if it were to be used. Fixes CESNET#563
@Roytak Roytak force-pushed the refactor-server-config branch 4 times, most recently from ff04d1c to c5f8b94 Compare November 21, 2025 09:39
@Roytak Roytak force-pushed the refactor-server-config branch 3 times, most recently from 91674e4 to 431989b Compare November 21, 2025 12:13
@Roytak Roytak force-pushed the refactor-server-config branch from 431989b to 19a0623 Compare November 21, 2025 12:48
@michalvasko michalvasko merged commit 916d666 into CESNET:devel Nov 21, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants