Changeset 156 for etherws/trunk/etherws.py
- Timestamp:
- 05/19/12 03:00:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r155 r156 43 43 import os 44 44 import sys 45 import ssl 45 46 import base64 46 47 import hashlib … … 222 223 if passwd.startswith('{SHA}'): 223 224 users[name] = passwd[5:] 225 if not users: 226 raise RuntimeError('no valid users found') 224 227 except TypeError: 225 228 pass … … 266 269 if args.debug: 267 270 websocket.enableTrace(True) 271 272 if not args.insecure: 273 websocket._SSLSocketWrapper = \ 274 lambda s: ssl.wrap_socket(s, cert_reqs=ssl.CERT_REQUIRED, 275 ca_certs=args.cacerts) 268 276 269 277 passwd = None … … 308 316 parser_client = subparsers.add_parser('client') 309 317 parser_client.add_argument('--uri', action='store', required=True) 318 parser_client.add_argument('--insecure', action='store_true', default=False) 319 parser_client.add_argument('--cacerts', action='store') 310 320 parser_client.add_argument('--user', action='store') 311 321
Note: See TracChangeset
for help on using the changeset viewer.