Greenbone Vulnerability Management Libraries
11.0.1
|
Implementation of SSH related API. More...
#include "sshutils.h"
#include <glib.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#include <libssh/libssh.h>
#include <string.h>
Go to the source code of this file.
Functions | |
char * | gvm_ssh_pkcs8_decrypt (const char *pkcs8_key, const char *passphrase) |
Decrypts a base64 encrypted ssh private key. More... | |
char * | gvm_ssh_public_from_private (const char *private_key, const char *passphrase) |
Exports a base64 encoded public key from a private key and its passphrase. More... | |
Implementation of SSH related API.
Definition in file sshutils.c.
char* gvm_ssh_pkcs8_decrypt | ( | const char * | pkcs8_key, |
const char * | passphrase | ||
) |
Decrypts a base64 encrypted ssh private key.
[in] | pkcs8_key | PKCS#8 encrypted private key. |
[in] | passphrase | Passphrase for the private key. |
Definition at line 42 of file sshutils.c.
Referenced by gvm_ssh_public_from_private().
char* gvm_ssh_public_from_private | ( | const char * | private_key, |
const char * | passphrase | ||
) |
Exports a base64 encoded public key from a private key and its passphrase.
[in] | private_key | Private key to export. |
[in] | passphrase | Passphrase for the private key. |
Definition at line 80 of file sshutils.c.
References gvm_ssh_pkcs8_decrypt().