|
Greenbone Vulnerability Management Libraries 22.35.9
|
SSH related API. More...

Go to the source code of this file.
Functions | |
| char * | gvm_ssh_pkcs8_decrypt (const char *, const char *) |
| Decrypts a base64 encrypted ssh private key. | |
| char * | gvm_ssh_public_from_private (const char *, const char *) |
| Exports a base64 encoded public key from a private key and its passphrase. | |
| int | gvm_ssh_private_key_info (const char *, const char *, const char **, char **) |
| Gets information from a SSH private key. | |
SSH related API.
Definition in file sshutils.h.
| 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 34 of file sshutils.c.
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), gvm_ssh_private_key_info(), and gvm_ssh_public_from_private().

| int gvm_ssh_private_key_info | ( | const char * | private_key, |
| const char * | passphrase, | ||
| const char ** | type, | ||
| char ** | sha256_hash ) |
Gets information from a SSH private key.
| [in] | private_key | Private key to get info from. |
| [in] | passphrase | Passphrase for the private key. |
| [out] | type | Static string describing the type of the key. |
| [out] | sha256_hash | The SHA-256 hash of the key. |
Definition at line 116 of file sshutils.c.
References gvm_ssh_pkcs8_decrypt().
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().


| 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 75 of file sshutils.c.
References gvm_ssh_pkcs8_decrypt().
Referenced by Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), Ensure(), and Ensure().

