enable debugging in example client/server if compiled in

pull/8/head
Chris Conlon 2018-12-31 09:02:33 -08:00
parent a28185bc3d
commit d26781d774
2 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,9 @@ def main():
bind_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
# enable debug, if native wolfSSL has been compiled with '--enable-debug'
wolfssl.WolfSSL.enable_debug()
context = wolfssl.SSLContext(get_method(args.v))
context.load_cert_chain(args.c, args.k)

View File

@ -109,6 +109,9 @@ def main():
print("Server listening on port", bind_socket.getsockname()[1])
# enable debug, if native wolfSSL has been compiled with '--enable-debug'
wolfssl.WolfSSL.enable_debug()
context = wolfssl.SSLContext(get_method(args.v), server_side=True)
context.load_cert_chain(args.c, args.k)