Compare commits
No commits in common. "48fd34117d2a8ea7569f07b9083dd2d6e8bcbd3d" and "863a42e982ba24fd504c405762ded2ab16c828ca" have entirely different histories.
48fd34117d
...
863a42e982
@ -13,7 +13,7 @@ from netsim import network_interface
|
||||
|
||||
|
||||
class NetWrapper:
|
||||
def __init__(self, privateKey: RsaKey, clientAddress: str, serverPubKey: RsaKey, username: str = "",
|
||||
def __init__(self, privateKey: RsaKey, clientAddress: str, username: str, serverPubKey: RsaKey,
|
||||
serverAddr: str = 'A'):
|
||||
self.network = network_interface('./../../netsim/network/', clientAddress)
|
||||
self.serverAddr = serverAddr
|
||||
@ -105,10 +105,6 @@ class NetWrapper:
|
||||
print("Authentication error")
|
||||
|
||||
def connectToServer(self, password: str) -> None:
|
||||
if self.username == "":
|
||||
raise Exception('Username is not initialized')
|
||||
if password == "":
|
||||
raise Exception('Passowrd may not be empty')
|
||||
identStatus = self.identifyServer()
|
||||
if not identStatus:
|
||||
raise Exception('Server identification faliure')
|
||||
|
Loading…
Reference in New Issue
Block a user