aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-05-02 16:55:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-05-02 16:55:29 +0200
commit0faffac020e016b0fcf31c71742bed1cbd1715f7 (patch)
tree6d620cefba6adce3e31a836820a03c312dc83a3c /examples
parent5aaae4cb6b9b831fcc3359a64953902c97559931 (diff)
downloadlibssh-0faffac020e016b0fcf31c71742bed1cbd1715f7.tar.gz
libssh-0faffac020e016b0fcf31c71742bed1cbd1715f7.tar.xz
libssh-0faffac020e016b0fcf31c71742bed1cbd1715f7.zip
examples: Do not usre deprecated functions
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/knownhosts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/knownhosts.c b/examples/knownhosts.c
index 5097cd93..cbca7e0c 100644
--- a/examples/knownhosts.c
+++ b/examples/knownhosts.c
@@ -40,7 +40,7 @@ int verify_knownhost(ssh_session session){
state=ssh_is_server_known(session);
- rc = ssh_get_publickey(session, &srv_pubkey);
+ rc = ssh_get_server_publickey(session, &srv_pubkey);
if (rc < 0) {
return -1;
}