OpenVAS Libraries  9.0.1
Functions
pwpolicy.h File Reference

Protos and data structures for pwpolicy checking. More...

Go to the source code of this file.

Functions

char * openvas_validate_password (const char *, const char *)
 Validate a password against the pattern file. More...
 
void openvas_disable_password_policy (void)
 Disable all password policy checking. More...
 

Detailed Description

Protos and data structures for pwpolicy checking.

This file contains the protos for pwpolicy.c

Function Documentation

◆ openvas_disable_password_policy()

void openvas_disable_password_policy ( void  )

Disable all password policy checking.

◆ openvas_validate_password()

char* openvas_validate_password ( const char *  password,
const char *  username 
)

Validate a password against the pattern file.

Parameters
[in]passwordThe password to check
[in]usernameThe user name or NULL. This is used to check the passphrase against the user name.
Returns
NULL on success or a malloced string with an error description.