Don't do client certificates in restricted mode.
This commit is contained in:
parent
8af6d9e478
commit
08bc6e2102
8
av98.py
8
av98.py
|
@ -404,6 +404,14 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
|
||||||
return
|
return
|
||||||
# Client cert
|
# Client cert
|
||||||
elif status.startswith("6"):
|
elif status.startswith("6"):
|
||||||
|
# Don't do client cert stuff in restricted mode, as in principle
|
||||||
|
# it could be used to fill up the disk by creating a whole lot of
|
||||||
|
# certificates
|
||||||
|
if self.restricted:
|
||||||
|
print("The server is requesting a client certificate.")
|
||||||
|
print("These are not supported in restricted mode, sorry.")
|
||||||
|
return
|
||||||
|
|
||||||
# Transient certs are a special case
|
# Transient certs are a special case
|
||||||
if status == "61":
|
if status == "61":
|
||||||
print("The server is asking to start a transient client certificate session.")
|
print("The server is asking to start a transient client certificate session.")
|
||||||
|
|
Loading…
Reference in New Issue