* server.py: New "--debug" option to set debug flag. Removed "cert", "key", "ca", "crl", and "cred" variables. Added default value for "checker" config file setting. Do not pass credentials to IPv6_TCPServer constructor. (debug): New global debug flag. Used by most debugging output code. (Client.__init__): Keyword argument "dn" replaced by "fingerprint", "password" renamed to "secret", and "passfile" renamed to "secfile". New keyword argument "checker". All callers changed. (Client.dn): Removed. (Client.fingerprint): New. (Client.password): Renamed to "secret"; all users changed. (Client.passfile): Renamed to "secfile"; all users changed. (Client.timeout, Client.interval): Changed to be properties; now automatically updates the "_timeout_milliseconds" and "_interval_milliseconds" values. (Client.timeout_milliseconds): Renamed to "_timeout_milliseconds". (Client.interval_milliseconds): Renamed to "_interval_milliseconds". (Client.check_command): New. (Client.start_checker): Use the new "check_command" attribute. (peer_certificate, fingerprint): New functions.
(tcp_handler.handle): Use ClientSession with empty credentials object instead of ServerSession. Set gnutls priority string. Do not verify peer. Use fingerprint instead of DN when searching for clients. Bug fix: Loop sending data so even large secret data strings are sent. (IPv6_TCPServer.credentials): Removed. (if_nametoindex): Do not import ctypes since that is now imported globally.