0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

AuthCreds::is_valid() method now additionally validates

username/password using new validate_auth_cred() function.
This commit is contained in:
James Yonan 2015-12-22 19:26:48 -07:00
parent 82972668eb
commit a8ace74e8a

View File

@ -31,6 +31,7 @@
#include <openvpn/common/options.hpp>
#include <openvpn/common/unicode.hpp>
#include <openvpn/buffer/safestr.hpp>
#include <openvpn/auth/validatecreds.hpp>
namespace openvpn {
@ -56,7 +57,7 @@ namespace openvpn {
bool is_valid() const
{
return defined();
return defined() && validate_auth_cred(username) && validate_auth_cred(password);
}
void wipe_password()