enable debugging in example client/server if compiled in
parent
a28185bc3d
commit
d26781d774
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue