diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 8cbe5cd7..121729f1 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -687,6 +687,7 @@ LIBSSH_API int ssh_key_is_private(const ssh_key k); LIBSSH_API int ssh_key_cmp(const ssh_key k1, const ssh_key k2, enum ssh_keycmp_e what); +LIBSSH_API ssh_key ssh_key_dup(const ssh_key key); LIBSSH_API int ssh_pki_generate(enum ssh_keytypes_e type, int parameter, ssh_key *pkey); diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 2901ba8b..722f47d9 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -111,7 +111,6 @@ struct ssh_signature_struct { typedef struct ssh_signature_struct *ssh_signature; /* SSH Key Functions */ -ssh_key ssh_key_dup(const ssh_key key); void ssh_key_clean (ssh_key key); const char *