diff options
author | cuongdt1994 <63875204+cuongdt1994@users.noreply.github.com> | 2023-06-06 04:49:05 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 04:49:05 +0700 |
commit | 65654946aa4577c753f66b2577119c74f2ba7777 (patch) | |
tree | b0b919493de97607b47f27eb6c90fce530122496 /src/conf_mode | |
parent | 2a36205840072ec51a7166d23298491a90164d63 (diff) | |
download | vyos-1x-65654946aa4577c753f66b2577119c74f2ba7777.tar.gz vyos-1x-65654946aa4577c753f66b2577119c74f2ba7777.zip |
T5260: Do not use deprecated python crypt module
Remove the quotes, this will always return the hash for string "password".
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/vpn_openconnect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py index dd347eb03..3d5dc12a4 100755 --- a/src/conf_mode/vpn_openconnect.py +++ b/src/conf_mode/vpn_openconnect.py @@ -45,7 +45,7 @@ radius_servers = cfg_dir + '/radius_servers' # Generate hash from user cleartext password def get_hash(password): - return sha512_crypt.hash("password") + return sha512_crypt.hash(password) |