|
Greenbone Vulnerability Management Libraries 22.8.0
|
#include "authutils.h"#include "passwordbasedauthentication.c"#include <cgreen/cgreen.h>#include <cgreen/mocks.h>#include <string.h>
Go to the source code of this file.
Functions | |
| Describe (PBA) | |
| BeforeEach (PBA) | |
| AfterEach (PBA) | |
| Ensure (PBA, returns_false_on_not_phc_compliant_setting) | |
| Ensure (PBA, returns_true_on_phc_compliant_setting) | |
| Ensure (PBA, returns_NULL_on_unsupport_settings) | |
| Ensure (PBA, unique_hash_without_adding_used_pepper) | |
| Ensure (PBA, verify_hash) | |
| Ensure (PBA, verify_hash_returns_invalid_on_np_hash_np_password) | |
| Ensure (PBA, defaults) | |
| Ensure (PBA, initialization) | |
| Ensure (PBA, handle_md5_hash) | |
| int | main (int argc, char **argv) |
| AfterEach | ( | PBA | ) |
Definition at line 16 of file passwordbasedauthentication_tests.c.
| BeforeEach | ( | PBA | ) |
Definition at line 13 of file passwordbasedauthentication_tests.c.
| Describe | ( | PBA | ) |
| Ensure | ( | PBA | , |
| defaults | |||
| ) |
Definition at line 74 of file passwordbasedauthentication_tests.c.
References PBASettings::count, MAX_PEPPER_SIZE, pba_finalize(), pba_init(), PBASettings::pepper, and PBASettings::prefix.

| Ensure | ( | PBA | , |
| handle_md5_hash | |||
| ) |
Definition at line 105 of file passwordbasedauthentication_tests.c.
References get_password_hashes(), gvm_auth_init(), pba_finalize(), pba_init(), pba_verify_hash(), and UPDATE_RECOMMENDED.

| Ensure | ( | PBA | , |
| initialization | |||
| ) |
Definition at line 85 of file passwordbasedauthentication_tests.c.
References PBASettings::count, MAX_PEPPER_SIZE, pba_finalize(), pba_init(), PBASettings::pepper, and PBASettings::prefix.

| Ensure | ( | PBA | , |
| returns_false_on_not_phc_compliant_setting | |||
| ) |
Definition at line 20 of file passwordbasedauthentication_tests.c.
References pba_is_phc_compliant().

| Ensure | ( | PBA | , |
| returns_NULL_on_unsupport_settings | |||
| ) |
Definition at line 29 of file passwordbasedauthentication_tests.c.
References pba_hash(), and PBASettings::prefix.

| Ensure | ( | PBA | , |
| returns_true_on_phc_compliant_setting | |||
| ) |
Definition at line 25 of file passwordbasedauthentication_tests.c.
References pba_is_phc_compliant().

| Ensure | ( | PBA | , |
| unique_hash_without_adding_used_pepper | |||
| ) |
Definition at line 37 of file passwordbasedauthentication_tests.c.
References pba_hash(), and PBASettings::pepper.

| Ensure | ( | PBA | , |
| verify_hash | |||
| ) |
Definition at line 49 of file passwordbasedauthentication_tests.c.
References INVALID, pba_hash(), pba_verify_hash(), and VALID.

| Ensure | ( | PBA | , |
| verify_hash_returns_invalid_on_np_hash_np_password | |||
| ) |
Definition at line 64 of file passwordbasedauthentication_tests.c.
References INVALID, pba_hash(), and pba_verify_hash().

| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 116 of file passwordbasedauthentication_tests.c.