CESNET / libnetconf2

C NETCONF library
BSD 3-Clause "New" or "Revised" License
203 stars 147 forks source link

query on host key calllback #506

Open kr234 opened 3 months ago

kr234 commented 3 months ago

Hi Team,

In libnetconf2 3.3.3 observe that the host key check callback api(nc_client_ssh_ch_set_auth_hostkey_check_clb)  is not available. Any specific reason for this?
Roytak commented 3 months ago

Hello, the callback was removed, because we wanted to have hostkey checks similar to the ones described in man ssh_config. So the callback was replaced by two new API - nc_client_ssh_set_knownhosts_mode and nc_client_ssh_set_knownhosts_path. That being said, I just found out that the Call Home variants of these new APIs are missing, so that needs to be fixed.

Are these 2 new APIs going to be sufficient for you? Or is there something else you'd need the callback for?