extensions: Host-bound public key authentication

Signed-off-by: Abdallah Alhadad <abdallahselhdad@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Abdallah Alhadad
2025-03-15 03:17:56 +02:00
parent fe381d6aa4
commit aa681c268e
6 changed files with 161 additions and 14 deletions

View File

@@ -229,11 +229,13 @@ static int ssh_server_send_extensions(ssh_session session) {
}
rc = ssh_buffer_pack(session->out_buffer,
"bdss",
"bdssss",
SSH2_MSG_EXT_INFO,
1, /* nr. of extensions */
2, /* nr. of extensions */
"server-sig-algs",
hostkey_algorithms);
hostkey_algorithms,
"publickey-hostbound@openssh.com",
"0");
if (rc != SSH_OK) {
goto error;
}