Skip to content

How to Adapt the Host Key Callback Function to the New Version? #585

Open

Description

@sicongPang

Hello
I need to use libnetconf2 version 3.7.10. The nc_server_ssh_set_hostkey_clb function and the related macro NC_SSH_KEY_TYPE cannot be found.
Is there any alternative API?
In addition, it is found that the functions such as nc_server_ssh_add_authkey and nc_server_add_endpt do not have replacement interfaces. Is there any document about the changes of libnetconf2 v2 to v3 interfaces? Thank you.

Activity

  1. michalvasko commented on Mar 27, 2026

    @michalvasko
    Member

    Host key is no longer provided by a callback but must directly be configured using nc_server_config_add_ssh_hostkey(). The configuration interface has been completely reworked but if you read the docuemntation, you should now what to do. You can generate docs for your specific version but v4 should have almost identical API to v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:questionIssue is actually a question.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions