Skip to content

Commit 8ec726e

Browse files
committed
asyncssh: remove deprecated crypt module
We do not actually need to crypt the password for this test.
1 parent 6c8382f commit 8ec726e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/resources/asyncssh-server/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# private key in it to use as a server host key. An SSH host certificate
33
# can optionally be provided in the file ``ssh_host_key-cert.pub``.
44

5-
import asyncio, asyncssh, crypt, sys, time, logging
5+
import asyncio, asyncssh, sys, time, logging
66

77
passwords = {
8-
'user123': 'qV2iEadIGV2rw' # password of 'secretpw'
8+
'user123': 'secretpw'
99
}
1010

1111
def handle_client(process):
@@ -38,7 +38,7 @@ def password_auth_supported(self):
3838

3939
def validate_password(self, username, password):
4040
pw = passwords.get(username, '*')
41-
return crypt.crypt(password, pw) == pw
41+
return password == pw
4242

4343
def public_key_auth_supported(self):
4444
return True

0 commit comments

Comments
 (0)