mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
pki.c: Add missing function documentation
Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
19
src/pki.c
19
src/pki.c
@@ -137,6 +137,13 @@ ssh_key ssh_key_new (void)
|
|||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief duplicates the key
|
||||||
|
*
|
||||||
|
* @param key An ssh_key to duplicate
|
||||||
|
*
|
||||||
|
* @return A duplicated ssh_key key
|
||||||
|
*/
|
||||||
ssh_key ssh_key_dup(const ssh_key key)
|
ssh_key ssh_key_dup(const ssh_key key)
|
||||||
{
|
{
|
||||||
if (key == NULL) {
|
if (key == NULL) {
|
||||||
@@ -2165,6 +2172,18 @@ int ssh_pki_export_pubkey_base64(const ssh_key key,
|
|||||||
return SSH_OK;
|
return SSH_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Export public key to file
|
||||||
|
*
|
||||||
|
* Exports the public key in AuthorizedKeysFile acceptable format.
|
||||||
|
* For more information see `man sshd`
|
||||||
|
*
|
||||||
|
* @param key A key to export
|
||||||
|
*
|
||||||
|
* @param filename The name of the output file
|
||||||
|
*
|
||||||
|
* @returns SSH_OK on success, SSH_ERROR otherwise.
|
||||||
|
*/
|
||||||
int ssh_pki_export_pubkey_file(const ssh_key key,
|
int ssh_pki_export_pubkey_file(const ssh_key key,
|
||||||
const char *filename)
|
const char *filename)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user