|
Greenbone Vulnerability Management Libraries 22.35.6
|
#include "sshutils.c"#include <cgreen/cgreen.h>#include <cgreen/mocks.h>#include <glib.h>#include <string.h>Functions | |
| Describe (sshutils) | |
| BeforeEach (sshutils) | |
| AfterEach (sshutils) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_returns_null_for_null_pkcs8_key) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_handles_empty_passphrase) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_handles_null_passphrase) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_returns_null_for_invalid_key) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_decrypts_rsa_key_correctly) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_decrypts_ecdsa_key_correctly) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_decrypts_ed25519_key_correctly) | |
| Ensure (sshutils, gvm_ssh_pkcs8_decrypt_handles_unencrypted_keys) | |
| Ensure (sshutils, gvm_ssh_public_from_private_returns_null_for_null_private_key) | |
| Ensure (sshutils, gvm_ssh_public_from_private_handles_invalid_private_key) | |
| Ensure (sshutils, gvm_ssh_public_from_private_handles_null_passphrase) | |
| Ensure (sshutils, gvm_ssh_public_from_private_handles_empty_passphrase) | |
| Ensure (sshutils, gvm_ssh_public_from_private_generates_rsa_public_key) | |
| Ensure (sshutils, gvm_ssh_public_from_private_generates_ecdsa_public_key) | |
| Ensure (sshutils, gvm_ssh_public_from_private_generates_ed25519_public_key) | |
| Ensure (sshutils, gvm_ssh_public_from_private_handles_encrypted_keys) | |
| Ensure (sshutils, gvm_ssh_public_from_private_handles_wrong_passphrase) | |
| Ensure (sshutils, gvm_ssh_private_key_info_returns_minus_one_for_null_private_key) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_null_type_and_hash_pointers) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_null_type_pointer) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_null_hash_pointer) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_invalid_private_key) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_null_passphrase) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_empty_passphrase) | |
| Ensure (sshutils, gvm_ssh_private_key_info_gets_rsa_key_type_and_hash) | |
| Ensure (sshutils, gvm_ssh_private_key_info_gets_ecdsa_key_type_and_hash) | |
| Ensure (sshutils, gvm_ssh_private_key_info_gets_ed25519_key_type_and_hash) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_encrypted_keys) | |
| Ensure (sshutils, gvm_ssh_private_key_info_handles_wrong_passphrase) | |
| Ensure (sshutils, gvm_ssh_private_key_info_can_get_just_type) | |
| Ensure (sshutils, gvm_ssh_private_key_info_can_get_just_hash) | |
| int | main (int argc, char **argv) |
Variables | |
| static const char * | test_rsa_pkcs8_encrypted |
| static const char * | test_rsa_pkcs8_unencrypted |
| static const char * | test_ecdsa_pkcs8_encrypted |
| static const char * | test_ecdsa_openssh_private |
| static const char * | test_ed25519_pkcs8_encrypted |
| static const char * | test_ed25519_openssh_private |
| static const char * | test_rsa_public_expected |
| static const char * | test_ecdsa_public_expected |
| static const char * | test_ed25519_public_expected |
| static const char * | expected_rsa_sha256_hash |
| static const char * | expected_ecdsa_sha256_hash |
| static const char * | expected_ed25519_sha256_hash |
| AfterEach | ( | sshutils | ) |
| BeforeEach | ( | sshutils | ) |
| Describe | ( | sshutils | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_decrypts_ecdsa_key_correctly | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_decrypts_ed25519_key_correctly | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_decrypts_rsa_key_correctly | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_handles_empty_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_handles_null_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_handles_unencrypted_keys | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_returns_null_for_invalid_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_pkcs8_decrypt_returns_null_for_null_pkcs8_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_can_get_just_hash | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_can_get_just_type | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_gets_ecdsa_key_type_and_hash | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_gets_ed25519_key_type_and_hash | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_gets_rsa_key_type_and_hash | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_empty_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_encrypted_keys | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_invalid_private_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_null_hash_pointer | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_null_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_null_type_and_hash_pointers | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_null_type_pointer | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_handles_wrong_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_private_key_info_returns_minus_one_for_null_private_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_generates_ecdsa_public_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_generates_ed25519_public_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_generates_rsa_public_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_handles_empty_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_handles_encrypted_keys | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_handles_invalid_private_key | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_handles_null_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_handles_wrong_passphrase | ) |
| Ensure | ( | sshutils | , |
| gvm_ssh_public_from_private_returns_null_for_null_private_key | ) |
| int main | ( | int | argc, |
| char ** | argv ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |