Fix work with certs

develop
parent 75a4aa77f7
commit f283e3d44c

8
.gitignore vendored

@ -1,8 +0,0 @@
.*
build
*.pyc
*.kate-swp
*.mo
mymake
.gitignore
Makefile

@ -39,6 +39,8 @@ def client_post_cert (client, clVars, show_info = False):
result_post_cert = _result_post_cert[1].integer
result_sid = _result_sid[1].integer
print _('client uses certificate %s') %client.CERT_FILE
print result_post_cert[0]
if result_post_cert[0] == -4:
print _("Certificate not found on the server")
print _('client uses certificate %s') %client.CERT_FILE
@ -49,6 +51,8 @@ def client_post_cert (client, clVars, show_info = False):
# client_sid(sid, client, cert_id = results[0][0], clVars = clVars)
if result_post_cert[0] == -3:
print _("Certificate not sent!")
elif result_post_cert[0] == -2:
print _("Using upstreamer cert")
else:
if show_info:
print _(" Your certifitate ID = %d") %(result_post_cert[0])

Loading…
Cancel
Save