From b312d4681e3c527c4ec8769020c46a6ceb369999 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 23 May 2022 15:35:59 +0200 Subject: [PATCH] Move ssh_key_dup to public API Fixes: https://gitlab.com/libssh/libssh-mirror/-/issues/15 Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/libssh.h | 1 + include/libssh/pki.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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 *