/opt/alt/python35/lib64/python3.5/__pycache__
NameSizeModeActions
abc.cpython-35.opt-1.pyc78150644editdlrm
abc.cpython-35.opt-2.pyc44390644editdlrm
abc.cpython-35.pyc78650644editdlrm
aifc.cpython-35.opt-1.pyc278050644editdlrm
aifc.cpython-35.opt-2.pyc225890644editdlrm
aifc.cpython-35.pyc278050644editdlrm
antigravity.cpython-35.opt-1.pyc8480644editdlrm
antigravity.cpython-35.opt-2.pyc7040644editdlrm
antigravity.cpython-35.pyc8480644editdlrm
argparse.cpython-35.opt-1.pyc653740644editdlrm
argparse.cpython-35.opt-2.pyc561070644editdlrm
argparse.cpython-35.pyc655330644editdlrm
ast.cpython-35.opt-1.pyc122950644editdlrm
ast.cpython-35.opt-2.pyc67040644editdlrm
ast.cpython-35.pyc122950644editdlrm
asynchat.cpython-35.opt-1.pyc84800644editdlrm
asynchat.cpython-35.opt-2.pyc71000644editdlrm
asynchat.cpython-35.pyc84800644editdlrm
asyncore.cpython-35.opt-1.pyc171740644editdlrm
asyncore.cpython-35.opt-2.pyc159680644editdlrm
asyncore.cpython-35.pyc171740644editdlrm
base64.cpython-35.opt-1.pyc182400644editdlrm
base64.cpython-35.opt-2.pyc126400644editdlrm
base64.cpython-35.pyc184380644editdlrm
bdb.cpython-35.opt-1.pyc185590644editdlrm
bdb.cpython-35.opt-2.pyc168250644editdlrm
bdb.cpython-35.pyc185590644editdlrm
binhex.cpython-35.opt-1.pyc134270644editdlrm
binhex.cpython-35.opt-2.pyc128840644editdlrm
binhex.cpython-35.pyc134270644editdlrm
bisect.cpython-35.opt-1.pyc28340644editdlrm
bisect.cpython-35.opt-2.pyc15360644editdlrm
bisect.cpython-35.pyc28340644editdlrm
bz2.cpython-35.opt-1.pyc117880644editdlrm
bz2.cpython-35.opt-2.pyc67530644editdlrm
bz2.cpython-35.pyc117880644editdlrm
calendar.cpython-35.opt-1.pyc276490644editdlrm
calendar.cpython-35.opt-2.pyc231100644editdlrm
calendar.cpython-35.pyc276490644editdlrm
cgi.cpython-35.opt-1.pyc298650644editdlrm
cgi.cpython-35.opt-2.pyc209630644editdlrm
cgi.cpython-35.pyc298650644editdlrm
cgitb.cpython-35.opt-1.pyc110030644editdlrm
cgitb.cpython-35.opt-2.pyc94000644editdlrm
cgitb.cpython-35.pyc110030644editdlrm
chunk.cpython-35.opt-1.pyc52190644editdlrm
chunk.cpython-35.opt-2.pyc30710644editdlrm
chunk.cpython-35.pyc52190644editdlrm
cmd.cpython-35.opt-1.pyc134080644editdlrm
cmd.cpython-35.opt-2.pyc79650644editdlrm
cmd.cpython-35.pyc134080644editdlrm
code.cpython-35.opt-1.pyc98260644editdlrm
code.cpython-35.opt-2.pyc48340644editdlrm
code.cpython-35.pyc98260644editdlrm
codecs.cpython-35.opt-1.pyc353030644editdlrm
codecs.cpython-35.opt-2.pyc194370644editdlrm
codecs.cpython-35.pyc353030644editdlrm
codeop.cpython-35.opt-1.pyc64540644editdlrm
codeop.cpython-35.opt-2.pyc24010644editdlrm
codeop.cpython-35.pyc64540644editdlrm
colorsys.cpython-35.opt-1.pyc36410644editdlrm
colorsys.cpython-35.opt-2.pyc30330644editdlrm
colorsys.cpython-35.pyc36410644editdlrm
compileall.cpython-35.opt-1.pyc87490644editdlrm
compileall.cpython-35.opt-2.pyc66090644editdlrm
compileall.cpython-35.pyc87490644editdlrm
configparser.cpython-35.opt-1.pyc481720644editdlrm
configparser.cpython-35.opt-2.pyc334600644editdlrm
configparser.cpython-35.pyc481720644editdlrm
contextlib.cpython-35.opt-1.pyc109530644editdlrm
contextlib.cpython-35.opt-2.pyc77560644editdlrm
contextlib.cpython-35.pyc109530644editdlrm
copy.cpython-35.opt-1.pyc80210644editdlrm
copy.cpython-35.opt-2.pyc57030644editdlrm
copy.cpython-35.pyc81070644editdlrm
copyreg.cpython-35.opt-1.pyc45110644editdlrm
copyreg.cpython-35.opt-2.pyc37050644editdlrm
copyreg.cpython-35.pyc45520644editdlrm
cProfile.cpython-35.opt-1.pyc46060644editdlrm
cProfile.cpython-35.opt-2.pyc41320644editdlrm
cProfile.cpython-35.pyc46060644editdlrm
crypt.cpython-35.opt-1.pyc24280644editdlrm
crypt.cpython-35.opt-2.pyc17600644editdlrm
crypt.cpython-35.pyc24280644editdlrm
csv.cpython-35.opt-1.pyc129230644editdlrm
csv.cpython-35.opt-2.pyc108720644editdlrm
csv.cpython-35.pyc129230644editdlrm
datetime.cpython-35.opt-1.pyc537120644editdlrm
datetime.cpython-35.opt-2.pyc452270644editdlrm
datetime.cpython-35.pyc554280644editdlrm
decimal.cpython-35.opt-1.pyc3930644editdlrm
decimal.cpython-35.opt-2.pyc3930644editdlrm
decimal.cpython-35.pyc3930644editdlrm
difflib.cpython-35.opt-1.pyc621990644editdlrm
difflib.cpython-35.opt-2.pyc276210644editdlrm
difflib.cpython-35.pyc622470644editdlrm
dis.cpython-35.opt-1.pyc147850644editdlrm
dis.cpython-35.opt-2.pyc112380644editdlrm
dis.cpython-35.pyc147850644editdlrm
doctest.cpython-35.opt-1.pyc794640644editdlrm
doctest.cpython-35.opt-2.pyc441130644editdlrm
doctest.cpython-35.pyc797370644editdlrm
dummy_threading.cpython-35.opt-1.pyc11990644editdlrm
dummy_threading.cpython-35.opt-2.pyc8240644editdlrm
dummy_threading.cpython-35.pyc11990644editdlrm
enum.cpython-35.opt-1.pyc165670644editdlrm
enum.cpython-35.opt-2.pyc128550644editdlrm
enum.cpython-35.pyc165670644editdlrm
filecmp.cpython-35.opt-1.pyc90860644editdlrm
filecmp.cpython-35.opt-2.pyc66650644editdlrm
filecmp.cpython-35.pyc90860644editdlrm
fileinput.cpython-35.opt-1.pyc138370644editdlrm
fileinput.cpython-35.opt-2.pyc82940644editdlrm
fileinput.cpython-35.pyc138370644editdlrm
fnmatch.cpython-35.opt-1.pyc31310644editdlrm
fnmatch.cpython-35.opt-2.pyc19400644editdlrm
fnmatch.cpython-35.pyc31310644editdlrm
formatter.cpython-35.opt-1.pyc188110644editdlrm
formatter.cpython-35.opt-2.pyc163590644editdlrm
formatter.cpython-35.pyc188110644editdlrm
fractions.cpython-35.opt-1.pyc200550644editdlrm
fractions.cpython-35.opt-2.pyc127640644editdlrm
fractions.cpython-35.pyc200550644editdlrm
ftplib.cpython-35.opt-1.pyc301980644editdlrm
ftplib.cpython-35.opt-2.pyc204490644editdlrm
ftplib.cpython-35.pyc301980644editdlrm
functools.cpython-35.opt-1.pyc235840644editdlrm
functools.cpython-35.opt-2.pyc176170644editdlrm
functools.cpython-35.pyc235840644editdlrm
genericpath.cpython-35.opt-1.pyc39320644editdlrm
genericpath.cpython-35.opt-2.pyc29370644editdlrm
genericpath.cpython-35.pyc39320644editdlrm
getopt.cpython-35.opt-1.pyc66580644editdlrm
getopt.cpython-35.opt-2.pyc41020644editdlrm
getopt.cpython-35.pyc67000644editdlrm
getpass.cpython-35.opt-1.pyc45010644editdlrm
getpass.cpython-35.opt-2.pyc33140644editdlrm
getpass.cpython-35.pyc45010644editdlrm
gettext.cpython-35.opt-1.pyc156740644editdlrm
gettext.cpython-35.opt-2.pyc149810644editdlrm
gettext.cpython-35.pyc156740644editdlrm
glob.cpython-35.opt-1.pyc41410644editdlrm
glob.cpython-35.opt-2.pyc32790644editdlrm
glob.cpython-35.pyc42020644editdlrm
gzip.cpython-35.opt-1.pyc175800644editdlrm
gzip.cpython-35.opt-2.pyc137680644editdlrm
gzip.cpython-35.pyc175800644editdlrm
hashlib.cpython-35.opt-1.pyc62760644editdlrm
hashlib.cpython-35.opt-2.pyc57460644editdlrm
hashlib.cpython-35.pyc62760644editdlrm
heapq.cpython-35.opt-1.pyc150420644editdlrm
heapq.cpython-35.opt-2.pyc120500644editdlrm
heapq.cpython-35.pyc150420644editdlrm
hmac.cpython-35.opt-1.pyc51310644editdlrm
hmac.cpython-35.opt-2.pyc33160644editdlrm
hmac.cpython-35.pyc51310644editdlrm
imaplib.cpython-35.opt-1.pyc423120644editdlrm
imaplib.cpython-35.opt-2.pyc302140644editdlrm
imaplib.cpython-35.pyc447940644editdlrm
imghdr.cpython-35.opt-1.pyc44980644editdlrm
imghdr.cpython-35.opt-2.pyc41810644editdlrm
imghdr.cpython-35.pyc44980644editdlrm
imp.cpython-35.opt-1.pyc104740644editdlrm
imp.cpython-35.opt-2.pyc80610644editdlrm
imp.cpython-35.pyc104740644editdlrm
inspect.cpython-35.opt-1.pyc844760644editdlrm
inspect.cpython-35.opt-2.pyc596830644editdlrm
inspect.cpython-35.pyc848260644editdlrm
io.cpython-35.opt-1.pyc34580644editdlrm
io.cpython-35.opt-2.pyc19670644editdlrm
io.cpython-35.pyc34580644editdlrm
ipaddress.cpython-35.opt-1.pyc665710644editdlrm
ipaddress.cpython-35.opt-2.pyc409610644editdlrm
ipaddress.cpython-35.pyc665710644editdlrm
keyword.cpython-35.opt-1.pyc19400644editdlrm
keyword.cpython-35.opt-2.pyc16700644editdlrm
keyword.cpython-35.pyc19400644editdlrm
linecache.cpython-35.opt-1.pyc40770644editdlrm
linecache.cpython-35.opt-2.pyc29700644editdlrm
linecache.cpython-35.pyc40770644editdlrm
locale.cpython-35.opt-1.pyc365280644editdlrm
locale.cpython-35.opt-2.pyc319050644editdlrm
locale.cpython-35.pyc365280644editdlrm
lzma.cpython-35.opt-1.pyc124800644editdlrm
lzma.cpython-35.opt-2.pyc63150644editdlrm
lzma.cpython-35.pyc124800644editdlrm
macpath.cpython-35.opt-1.pyc61430644editdlrm
macpath.cpython-35.opt-2.pyc48730644editdlrm
macpath.cpython-35.pyc61430644editdlrm
macurl2path.cpython-35.opt-1.pyc20840644editdlrm
macurl2path.cpython-35.opt-2.pyc17020644editdlrm
macurl2path.cpython-35.pyc20840644editdlrm
mailbox.cpython-35.opt-1.pyc696980644editdlrm
mailbox.cpython-35.opt-2.pyc605050644editdlrm
mailbox.cpython-35.pyc697970644editdlrm
mailcap.cpython-35.opt-1.pyc71500644editdlrm
mailcap.cpython-35.opt-2.pyc56300644editdlrm
mailcap.cpython-35.pyc71500644editdlrm
mimetypes.cpython-35.opt-1.pyc166470644editdlrm
mimetypes.cpython-35.opt-2.pyc106450644editdlrm
mimetypes.cpython-35.pyc166470644editdlrm
modulefinder.cpython-35.opt-1.pyc171800644editdlrm
modulefinder.cpython-35.opt-2.pyc163370644editdlrm
modulefinder.cpython-35.pyc172590644editdlrm
netrc.cpython-35.opt-1.pyc42460644editdlrm
netrc.cpython-35.opt-2.pyc40040644editdlrm
netrc.cpython-35.pyc42460644editdlrm
nntplib.cpython-35.opt-1.pyc360770644editdlrm
nntplib.cpython-35.opt-2.pyc235220644editdlrm
nntplib.cpython-35.pyc360770644editdlrm
ntpath.cpython-35.opt-1.pyc148140644editdlrm
ntpath.cpython-35.opt-2.pyc124680644editdlrm
ntpath.cpython-35.pyc148140644editdlrm
nturl2path.cpython-35.opt-1.pyc16950644editdlrm
nturl2path.cpython-35.opt-2.pyc13750644editdlrm
nturl2path.cpython-35.pyc16950644editdlrm
numbers.cpython-35.opt-1.pyc126670644editdlrm
numbers.cpython-35.opt-2.pyc86940644editdlrm
numbers.cpython-35.pyc126670644editdlrm
opcode.cpython-35.opt-1.pyc57020644editdlrm
opcode.cpython-35.opt-2.pyc55620644editdlrm
opcode.cpython-35.pyc57020644editdlrm
operator.cpython-35.opt-1.pyc147890644editdlrm
operator.cpython-35.opt-2.pyc123220644editdlrm
operator.cpython-35.pyc147890644editdlrm
optparse.cpython-35.opt-1.pyc511810644editdlrm
optparse.cpython-35.opt-2.pyc388020644editdlrm
optparse.cpython-35.pyc512580644editdlrm
os.cpython-35.opt-1.pyc312920644editdlrm
os.cpython-35.opt-2.pyc197720644editdlrm
os.cpython-35.pyc312920644editdlrm
pathlib.cpython-35.opt-1.pyc441150644editdlrm
pathlib.cpython-35.opt-2.pyc377270644editdlrm
pathlib.cpython-35.pyc441150644editdlrm
pdb.cpython-35.opt-1.pyc493180644editdlrm
pdb.cpython-35.opt-2.pyc353390644editdlrm
pdb.cpython-35.pyc493840644editdlrm
pickle.cpython-35.opt-1.pyc468050644editdlrm
pickle.cpython-35.opt-2.pyc420090644editdlrm
pickle.cpython-35.pyc469510644editdlrm
pickletools.cpython-35.opt-1.pyc689830644editdlrm
pickletools.cpython-35.opt-2.pyc602430644editdlrm
pickletools.cpython-35.pyc700670644editdlrm
pipes.cpython-35.opt-1.pyc83560644editdlrm
pipes.cpython-35.opt-2.pyc54790644editdlrm
pipes.cpython-35.pyc83560644editdlrm
pkgutil.cpython-35.opt-1.pyc174720644editdlrm
pkgutil.cpython-35.opt-2.pyc121610644editdlrm
pkgutil.cpython-35.pyc174720644editdlrm
platform.cpython-35.opt-1.pyc300770644editdlrm
platform.cpython-35.opt-2.pyc208270644editdlrm
platform.cpython-35.pyc300770644editdlrm
plistlib.cpython-35.opt-1.pyc299760644editdlrm
plistlib.cpython-35.opt-2.pyc267140644editdlrm
plistlib.cpython-35.pyc300590644editdlrm
poplib.cpython-35.opt-1.pyc139860644editdlrm
poplib.cpython-35.opt-2.pyc90490644editdlrm
poplib.cpython-35.pyc139860644editdlrm
posixpath.cpython-35.opt-1.pyc111540644editdlrm
posixpath.cpython-35.opt-2.pyc94310644editdlrm
posixpath.cpython-35.pyc111540644editdlrm
pprint.cpython-35.opt-1.pyc174250644editdlrm
pprint.cpython-35.opt-2.pyc153570644editdlrm
pprint.cpython-35.pyc174790644editdlrm
profile.cpython-35.opt-1.pyc148310644editdlrm
profile.cpython-35.opt-2.pyc118430644editdlrm
profile.cpython-35.pyc150860644editdlrm
pstats.cpython-35.opt-1.pyc237860644editdlrm
pstats.cpython-35.opt-2.pyc213260644editdlrm
pstats.cpython-35.pyc237860644editdlrm
pty.cpython-35.opt-1.pyc42040644editdlrm
pty.cpython-35.opt-2.pyc33490644editdlrm
pty.cpython-35.pyc42040644editdlrm
pyclbr.cpython-35.opt-1.pyc90990644editdlrm
pyclbr.cpython-35.opt-2.pyc62970644editdlrm
pyclbr.cpython-35.pyc90990644editdlrm
pydoc.cpython-35.opt-1.pyc903430644editdlrm
pydoc.cpython-35.opt-2.pyc811520644editdlrm
pydoc.cpython-35.pyc904040644editdlrm
py_compile.cpython-35.opt-1.pyc68780644editdlrm
py_compile.cpython-35.opt-2.pyc32700644editdlrm
py_compile.cpython-35.pyc68780644editdlrm
queue.cpython-35.opt-1.pyc91940644editdlrm
queue.cpython-35.opt-2.pyc53920644editdlrm
queue.cpython-35.pyc91940644editdlrm
quopri.cpython-35.opt-1.pyc61910644editdlrm
quopri.cpython-35.opt-2.pyc51530644editdlrm
quopri.cpython-35.pyc64010644editdlrm
random.cpython-35.opt-1.pyc193270644editdlrm
random.cpython-35.opt-2.pyc130310644editdlrm
random.cpython-35.pyc193270644editdlrm
re.cpython-35.opt-1.pyc144520644editdlrm
re.cpython-35.opt-2.pyc61700644editdlrm
re.cpython-35.pyc144520644editdlrm
reprlib.cpython-35.opt-1.pyc59590644editdlrm
reprlib.cpython-35.opt-2.pyc58010644editdlrm
reprlib.cpython-35.pyc59590644editdlrm
rlcompleter.cpython-35.opt-1.pyc57820644editdlrm
rlcompleter.cpython-35.opt-2.pyc31170644editdlrm
rlcompleter.cpython-35.pyc57820644editdlrm
runpy.cpython-35.opt-1.pyc86440644editdlrm
runpy.cpython-35.opt-2.pyc70950644editdlrm
runpy.cpython-35.pyc86440644editdlrm
sched.cpython-35.opt-1.pyc63660644editdlrm
sched.cpython-35.opt-2.pyc33150644editdlrm
sched.cpython-35.pyc63660644editdlrm
selectors.cpython-35.opt-1.pyc189620644editdlrm
selectors.cpython-35.opt-2.pyc149680644editdlrm
selectors.cpython-35.pyc189620644editdlrm
shelve.cpython-35.opt-1.pyc99400644editdlrm
shelve.cpython-35.opt-2.pyc57640644editdlrm
shelve.cpython-35.pyc99400644editdlrm
shlex.cpython-35.opt-1.pyc73530644editdlrm
shlex.cpython-35.opt-2.pyc68370644editdlrm
shlex.cpython-35.pyc73530644editdlrm
shutil.cpython-35.opt-1.pyc326390644editdlrm
shutil.cpython-35.opt-2.pyc221640644editdlrm
shutil.cpython-35.pyc326390644editdlrm
signal.cpython-35.opt-1.pyc27470644editdlrm
signal.cpython-35.opt-2.pyc25190644editdlrm
signal.cpython-35.pyc27470644editdlrm
site.cpython-35.opt-1.pyc176650644editdlrm
site.cpython-35.opt-2.pyc120110644editdlrm
site.cpython-35.pyc176650644editdlrm
smtpd.cpython-35.opt-1.pyc293010644editdlrm
smtpd.cpython-35.opt-2.pyc266480644editdlrm
smtpd.cpython-35.pyc293010644editdlrm
smtplib.cpython-35.opt-1.pyc369740644editdlrm
smtplib.cpython-35.opt-2.pyc205390644editdlrm
smtplib.cpython-35.pyc370480644editdlrm
sndhdr.cpython-35.opt-1.pyc69050644editdlrm
sndhdr.cpython-35.opt-2.pyc56190644editdlrm
sndhdr.cpython-35.pyc69050644editdlrm
socket.cpython-35.opt-1.pyc230230644editdlrm
socket.cpython-35.opt-2.pyc155830644editdlrm
socket.cpython-35.pyc230730644editdlrm
socketserver.cpython-35.opt-1.pyc231960644editdlrm
socketserver.cpython-35.opt-2.pyc124120644editdlrm
socketserver.cpython-35.pyc231960644editdlrm
sre_compile.cpython-35.opt-1.pyc107520644editdlrm
sre_compile.cpython-35.opt-2.pyc103360644editdlrm
sre_compile.cpython-35.pyc109200644editdlrm
sre_constants.cpython-35.opt-1.pyc63200644editdlrm
sre_constants.cpython-35.opt-2.pyc58910644editdlrm
sre_constants.cpython-35.pyc63200644editdlrm
sre_parse.cpython-35.opt-1.pyc223940644editdlrm
sre_parse.cpython-35.opt-2.pyc223440644editdlrm
sre_parse.cpython-35.pyc224270644editdlrm
ssl.cpython-35.opt-1.pyc358360644editdlrm
ssl.cpython-35.opt-2.pyc265050644editdlrm
ssl.cpython-35.pyc358360644editdlrm
stat.cpython-35.opt-1.pyc41620644editdlrm
stat.cpython-35.opt-2.pyc34820644editdlrm
stat.cpython-35.pyc41620644editdlrm
statistics.cpython-35.opt-1.pyc167960644editdlrm
statistics.cpython-35.opt-2.pyc69300644editdlrm
statistics.cpython-35.pyc170980644editdlrm
string.cpython-35.opt-1.pyc86100644editdlrm
string.cpython-35.opt-2.pyc75000644editdlrm
string.cpython-35.pyc86100644editdlrm
stringprep.cpython-35.opt-1.pyc129210644editdlrm
stringprep.cpython-35.opt-2.pyc127010644editdlrm
stringprep.cpython-35.pyc129840644editdlrm
struct.cpython-35.opt-1.pyc3470644editdlrm
struct.cpython-35.opt-2.pyc3470644editdlrm
struct.cpython-35.pyc3470644editdlrm
subprocess.cpython-35.opt-1.pyc367590644editdlrm
subprocess.cpython-35.opt-2.pyc263280644editdlrm
subprocess.cpython-35.pyc368720644editdlrm
sunau.cpython-35.opt-1.pyc182010644editdlrm
sunau.cpython-35.opt-2.pyc136090644editdlrm
sunau.cpython-35.pyc182010644editdlrm
symbol.cpython-35.opt-1.pyc27300644editdlrm
symbol.cpython-35.opt-2.pyc26520644editdlrm
symbol.cpython-35.pyc27300644editdlrm
symtable.cpython-35.opt-1.pyc108950644editdlrm
symtable.cpython-35.opt-2.pyc101960644editdlrm
symtable.cpython-35.pyc110170644editdlrm
sysconfig.cpython-35.opt-1.pyc169570644editdlrm
sysconfig.cpython-35.opt-2.pyc143850644editdlrm
sysconfig.cpython-35.pyc169570644editdlrm
tabnanny.cpython-35.opt-1.pyc77050644editdlrm
tabnanny.cpython-35.opt-2.pyc67680644editdlrm
tabnanny.cpython-35.pyc77050644editdlrm
tarfile.cpython-35.opt-1.pyc690820644editdlrm
tarfile.cpython-35.opt-2.pyc550630644editdlrm
tarfile.cpython-35.pyc690820644editdlrm
telnetlib.cpython-35.opt-1.pyc192310644editdlrm
telnetlib.cpython-35.opt-2.pyc117170644editdlrm
telnetlib.cpython-35.pyc192310644editdlrm
tempfile.cpython-35.opt-1.pyc236340644editdlrm
tempfile.cpython-35.opt-2.pyc171520644editdlrm
tempfile.cpython-35.pyc236340644editdlrm
textwrap.cpython-35.opt-1.pyc142610644editdlrm
textwrap.cpython-35.opt-2.pyc69600644editdlrm
textwrap.cpython-35.pyc143470644editdlrm
this.cpython-35.opt-1.pyc13160644editdlrm
this.cpython-35.opt-2.pyc13160644editdlrm
this.cpython-35.pyc13160644editdlrm
threading.cpython-35.opt-1.pyc383180644editdlrm
threading.cpython-35.opt-2.pyc222520644editdlrm
threading.cpython-35.pyc390800644editdlrm
timeit.cpython-35.opt-1.pyc110100644editdlrm
timeit.cpython-35.opt-2.pyc55140644editdlrm
timeit.cpython-35.pyc110100644editdlrm
token.cpython-35.opt-1.pyc36730644editdlrm
token.cpython-35.opt-2.pyc36210644editdlrm
token.cpython-35.pyc36730644editdlrm
tokenize.cpython-35.opt-1.pyc204110644editdlrm
tokenize.cpython-35.opt-2.pyc168090644editdlrm
tokenize.cpython-35.pyc204610644editdlrm
trace.cpython-35.opt-1.pyc238820644editdlrm
trace.cpython-35.opt-2.pyc212050644editdlrm
trace.cpython-35.pyc239390644editdlrm
traceback.cpython-35.opt-1.pyc201310644editdlrm
traceback.cpython-35.opt-2.pyc114300644editdlrm
traceback.cpython-35.pyc201310644editdlrm
tracemalloc.cpython-35.opt-1.pyc170230644editdlrm
tracemalloc.cpython-35.opt-2.pyc156110644editdlrm
tracemalloc.cpython-35.pyc170230644editdlrm
tty.cpython-35.opt-1.pyc11460644editdlrm
tty.cpython-35.opt-2.pyc10430644editdlrm
tty.cpython-35.pyc11460644editdlrm
types.cpython-35.opt-1.pyc87400644editdlrm
types.cpython-35.opt-2.pyc75710644editdlrm
types.cpython-35.pyc87400644editdlrm
typing.cpython-35.opt-1.pyc787680644editdlrm
typing.cpython-35.opt-2.pyc615410644editdlrm
typing.cpython-35.pyc793620644editdlrm
uu.cpython-35.opt-1.pyc39550644editdlrm
uu.cpython-35.opt-2.pyc37350644editdlrm
uu.cpython-35.pyc39550644editdlrm
uuid.cpython-35.opt-1.pyc216070644editdlrm
uuid.cpython-35.opt-2.pyc149350644editdlrm
uuid.cpython-35.pyc216740644editdlrm
warnings.cpython-35.opt-1.pyc123730644editdlrm
warnings.cpython-35.opt-2.pyc100280644editdlrm
warnings.cpython-35.pyc130450644editdlrm
wave.cpython-35.opt-1.pyc189460644editdlrm
wave.cpython-35.opt-2.pyc129490644editdlrm
wave.cpython-35.pyc190070644editdlrm
weakref.cpython-35.opt-1.pyc206290644editdlrm
weakref.cpython-35.opt-2.pyc173170644editdlrm
weakref.cpython-35.pyc206660644editdlrm
webbrowser.cpython-35.opt-1.pyc173730644editdlrm
webbrowser.cpython-35.opt-2.pyc154780644editdlrm
webbrowser.cpython-35.pyc174120644editdlrm
xdrlib.cpython-35.opt-1.pyc89660644editdlrm
xdrlib.cpython-35.opt-2.pyc84730644editdlrm
xdrlib.cpython-35.pyc89660644editdlrm
zipapp.cpython-35.opt-1.pyc60270644editdlrm
zipapp.cpython-35.opt-2.pyc48510644editdlrm
zipapp.cpython-35.pyc60270644editdlrm
zipfile.cpython-35.opt-1.pyc497130644editdlrm
zipfile.cpython-35.opt-2.pyc441910644editdlrm
zipfile.cpython-35.pyc497950644editdlrm
_bootlocale.cpython-35.opt-1.pyc10130644editdlrm
_bootlocale.cpython-35.opt-2.pyc7860644editdlrm
_bootlocale.cpython-35.pyc10440644editdlrm
_collections_abc.cpython-35.opt-1.pyc298160644editdlrm
_collections_abc.cpython-35.opt-2.pyc251470644editdlrm
_collections_abc.cpython-35.pyc298160644editdlrm
_compat_pickle.cpython-35.opt-1.pyc66430644editdlrm
_compat_pickle.cpython-35.opt-2.pyc66430644editdlrm
_compat_pickle.cpython-35.pyc67170644editdlrm
_compression.cpython-35.opt-1.pyc44490644editdlrm
_compression.cpython-35.opt-2.pyc42270644editdlrm
_compression.cpython-35.pyc44490644editdlrm
_dummy_thread.cpython-35.opt-1.pyc50610644editdlrm
_dummy_thread.cpython-35.opt-2.pyc28490644editdlrm
_dummy_thread.cpython-35.pyc50610644editdlrm
_markupbase.cpython-35.opt-1.pyc86920644editdlrm
_markupbase.cpython-35.opt-2.pyc83080644editdlrm
_markupbase.cpython-35.pyc88790644editdlrm
_osx_support.cpython-35.opt-1.pyc104880644editdlrm
_osx_support.cpython-35.opt-2.pyc80370644editdlrm
_osx_support.cpython-35.pyc104880644editdlrm
_pydecimal.cpython-35.opt-1.pyc1721010644editdlrm
_pydecimal.cpython-35.opt-2.pyc910610644editdlrm
_pydecimal.cpython-35.pyc1721010644editdlrm
_pyio.cpython-35.opt-1.pyc759830644editdlrm
_pyio.cpython-35.opt-2.pyc535560644editdlrm
_pyio.cpython-35.pyc760090644editdlrm
_sitebuiltins.cpython-35.opt-1.pyc36690644editdlrm
_sitebuiltins.cpython-35.opt-2.pyc31390644editdlrm
_sitebuiltins.cpython-35.pyc36690644editdlrm
_strptime.cpython-35.opt-1.pyc157930644editdlrm
_strptime.cpython-35.opt-2.pyc122670644editdlrm
_strptime.cpython-35.pyc157930644editdlrm
_sysconfigdata.cpython-35.opt-1.pyc220810644editdlrm
_sysconfigdata.cpython-35.opt-2.pyc220810644editdlrm
_sysconfigdata.cpython-35.pyc220810644editdlrm
_threading_local.cpython-35.opt-1.pyc68990644editdlrm
_threading_local.cpython-35.opt-2.pyc33840644editdlrm
_threading_local.cpython-35.pyc68990644editdlrm
_weakrefset.cpython-35.opt-1.pyc84210644editdlrm
_weakrefset.cpython-35.opt-2.pyc84210644editdlrm
_weakrefset.cpython-35.pyc84210644editdlrm
__future__.cpython-35.opt-1.pyc43140644editdlrm
__future__.cpython-35.opt-2.pyc23360644editdlrm
__future__.cpython-35.pyc43140644editdlrm
__phello__.foo.cpython-35.opt-1.pyc1340644editdlrm
__phello__.foo.cpython-35.opt-2.pyc1340644editdlrm
__phello__.foo.cpython-35.pyc1340644editdlrm
Edit: /opt/alt/python35/lib64/python3.5/__pycache__/ssl.cpython-35.opt-1.pyc (35836B)
 xzfp#@sdZddlZddlZddlZddlZddlZddlmZddlm Z m Z ddl Z ddl mZmZmZddl mZmZddl mZmZmZmZmZmZddl mZmZmZdd l mZmZdd l m Z m!Z!m"Z"m#Z#ydd l m$Z$Wne%k rPYnXd d Z&e&de&de&de&dddl m'Z'm(Z(m)Z)m*Z*ddl m+Z+e j,de-ddde e.j/Z0e._0dde.j1j2DZ3y e4Z5Wne6k r&dZ5YnXej7dkrLddl m8Z8m9Z9ddl:m:Z:m;Z;m<Z<m=Z=ddl:m>Z>m?Z?ddl@Z@ddlAZAddlBZBeCZDe jErdgZFngZFdZGd ZHGd!d"d"eIZJd#d$d%ZKd&d'ZLd(d)ZMed*d+ZNd,d-ZOGd.d/d/ed/d0ZPGd1d2d2ePe ZQGd3d4d4eZReQjSd5dd6dd7dd8d9ZTe/d:dd;d<d=eQjSd>dd?dd5dd6dd7dd@dAZUeTZVeUZWGdBdCdCZXGdDdEdEe:ZYddd<ee/ddFdFddGdH ZZdIdJZ[dKZ\dLZ]dMdNZ^dOdPZ_e/ddQdRZ`dSdTZadS)Ua This module provides some more Pythonic support for SSL. Object types: SSLSocket -- subtype of socket.socket which does SSL over the socket Exceptions: SSLError -- exception raised for I/O errors Functions: cert_time_to_seconds -- convert time string used for certificate notBefore and notAfter functions to integer seconds past the Epoch (the time values returned from time.time()) fetch_server_certificate (HOST, PORT) -- fetch the certificate provided by the server running on HOST at port PORT. No validation of the certificate is performed. Integer constants: SSL_ERROR_ZERO_RETURN SSL_ERROR_WANT_READ SSL_ERROR_WANT_WRITE SSL_ERROR_WANT_X509_LOOKUP SSL_ERROR_SYSCALL SSL_ERROR_SSL SSL_ERROR_WANT_CONNECT SSL_ERROR_EOF SSL_ERROR_INVALID_ERROR_CODE The following group define certificate requirements that one side is allowing/requiring from the other side: CERT_NONE - no certificates from the other side are required (or will be looked at if provided) CERT_OPTIONAL - certificates are not required, but if provided will be validated, and if validation fails, the connection will also fail CERT_REQUIRED - certificates are required, and will be validated, and if validation fails, the connection will also fail The following constants identify various SSL protocol variants: PROTOCOL_SSLv2 PROTOCOL_SSLv3 PROTOCOL_SSLv23 PROTOCOL_TLS PROTOCOL_TLSv1 PROTOCOL_TLSv1_1 PROTOCOL_TLSv1_2 The following constants identify various SSL alert message descriptions as per http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-6 ALERT_DESCRIPTION_CLOSE_NOTIFY ALERT_DESCRIPTION_UNEXPECTED_MESSAGE ALERT_DESCRIPTION_BAD_RECORD_MAC ALERT_DESCRIPTION_RECORD_OVERFLOW ALERT_DESCRIPTION_DECOMPRESSION_FAILURE ALERT_DESCRIPTION_HANDSHAKE_FAILURE ALERT_DESCRIPTION_BAD_CERTIFICATE ALERT_DESCRIPTION_UNSUPPORTED_CERTIFICATE ALERT_DESCRIPTION_CERTIFICATE_REVOKED ALERT_DESCRIPTION_CERTIFICATE_EXPIRED ALERT_DESCRIPTION_CERTIFICATE_UNKNOWN ALERT_DESCRIPTION_ILLEGAL_PARAMETER ALERT_DESCRIPTION_UNKNOWN_CA ALERT_DESCRIPTION_ACCESS_DENIED ALERT_DESCRIPTION_DECODE_ERROR ALERT_DESCRIPTION_DECRYPT_ERROR ALERT_DESCRIPTION_PROTOCOL_VERSION ALERT_DESCRIPTION_INSUFFICIENT_SECURITY ALERT_DESCRIPTION_INTERNAL_ERROR ALERT_DESCRIPTION_USER_CANCELLED ALERT_DESCRIPTION_NO_RENEGOTIATION ALERT_DESCRIPTION_UNSUPPORTED_EXTENSION ALERT_DESCRIPTION_CERTIFICATE_UNOBTAINABLE ALERT_DESCRIPTION_UNRECOGNIZED_NAME ALERT_DESCRIPTION_BAD_CERTIFICATE_STATUS_RESPONSE ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE ALERT_DESCRIPTION_UNKNOWN_PSK_IDENTITY N) namedtuple)EnumIntEnum)OPENSSL_VERSION_NUMBEROPENSSL_VERSION_INFOOPENSSL_VERSION) _SSLContext MemoryBIO)SSLErrorSSLZeroReturnErrorSSLWantReadErrorSSLWantWriteErrorSSLSyscallError SSLEOFError) CERT_NONE CERT_OPTIONAL CERT_REQUIRED)txt2objnid2obj) RAND_statusRAND_add RAND_bytesRAND_pseudo_bytes)RAND_egdcCs@x9ttD]+}|j|r tt|t|sr,sourcecCsi|]\}}||qSr!r!).0r+valuer!r!r" s r0win32)enum_certificates enum_crls)socketAF_INET SOCK_STREAMcreate_connection) SOL_SOCKETSO_TYPEz tls-uniquezECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:DH+CHACHA20:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!3DESzECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:DH+CHACHA20:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!DSS:!RC4:!3DESc@seZdZdS)CertificateErrorN)__name__ __module__ __qualname__r!r!r!r"r:s r:c CsAg}|sdS|jd^}}|jd}||krVtdt||sr|j|jkS|dkr|jdnY|jds|jdr|jtj|n"|jtj|j ddx$|D]}|jtj|qWtj d d j |d tj }|j |S) zhMatching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 F.*z,too many wildcards in certificate DNS name: z[^.]+zxn--z\*z[^.]*z\Az\.z\Z)splitcountr:reprlowerappendrreescapereplacecompilejoin IGNORECASEmatch) ZdnhostnameZ max_wildcardsZpatsZleftmostZ remainderZ wildcardsZfragZpatr!r!r"_dnsname_matchs&  " &rNcCstj|j}||kS)zExact matching of IP addresses. RFC 6125 explicitly doesn't define an algorithm for this (section 1.7.2 - "Out of Scope"). ) ipaddress ip_addressrstrip)Zipnamehost_ipZipr!r!r"_ipaddress_matchsrScCs|stdytj|}Wntk r?d}YnXg}|jdf}x|D]\}}|dkr|dkrt||rdS|j|q_|dkr_|dk rt||rdS|j|q_W|sHx]|jdfD]I}x@|D]8\}}|dkrt||r3dS|j|qWqWt|dkrtd |d j t t |fn;t|dkrtd ||d fn td dS)a)Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing. ztempty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIREDNZsubjectAltNameZDNSz IP AddressZsubjectZ commonNamer>z&hostname %r doesn't match either of %sz, zhostname %r doesn't match %rrz=no appropriate commonName or subjectAltName fields were found) ValueErrorrOrPgetrNrErSlenr:rJmaprC)certrMrRZdnsnamesZsankeyr/subr!r!r"match_hostnames>      %r[DefaultVerifyPathszQcafile capath openssl_cafile_env openssl_cafile openssl_capath_env openssl_capathcCstj}tjj|d|d}tjj|d|d}ttjj|ra|ndtjj|r||nd|S)z/Return paths to default cafile and capath. rr>N) rget_default_verify_pathsosenvironrUr\pathisfileisdir)partscafilecapathr!r!r"r_?s  r_cs^eZdZdZfZfddZefddZefddZS) _ASN1Objectz#ASN.1 object identifier lookup cstj|t|ddS)Nr+F)super__new___txt2obj)clsoid) __class__r!r"rjRsz_ASN1Object.__new__cstj|t|S)z3Create _ASN1Object from OpenSSL numeric ID )rirj_nid2obj)rlZnid)rnr!r"fromnidUsz_ASN1Object.fromnidcstj|t|ddS)z=Create _ASN1Object from short name, long name or OID r+T)rirjrk)rlr+)rnr!r"fromname[sz_ASN1Object.fromname) r;r<r=__doc__ __slots__rj classmethodrprqr!r!)rnr"rhMs rhznid shortname longname oidc@s"eZdZdZdZdZdS)PurposezDSSLContext purpose flags with X509v3 Extended Key Usage objects z1.3.6.1.5.5.7.3.1z1.3.6.1.5.5.7.3.2N)r;r<r=rr SERVER_AUTH CLIENT_AUTHr!r!r!r"rubs ruc@seZdZdZdZdZeddZedd Zd d d d d dZ d d ddZ ddZ ddZ ddZ ejddZd S) SSLContextz|An SSLContext holds various SSL-related configuration options and data, such as certificates and possibly a private key.protocol __weakref__CAROOTcOs/tj||}|tkr+|jt|S)N)rrj_SSLv2_IF_EXISTS set_ciphers_DEFAULT_CIPHERS)rlryargskwargsselfr!r!r"rjps  zSSLContext.__new__cCs ||_dS)N)ry)rryr!r!r"__init__vszSSLContext.__init__FTNc Cs+td|d|d|d|d|d|S)Nsock server_sidedo_handshake_on_connectsuppress_ragged_eofsserver_hostname_context) SSLSocket)rrrrrrr!r!r" wrap_socketys zSSLContext.wrap_socketcCs(|j||d|d|}t|S)Nrr)Z _wrap_bio SSLObject)rZincomingZoutgoingrrsslobjr!r!r"wrap_bios zSSLContext.wrap_biocCst}xm|D]e}t|d}t|dksIt|dkrUtd|jt||j|qW|j|dS)Nasciirz(NPN protocols must be 1 to 255 in length) bytearraybytesrVr rEextendZ_set_npn_protocols)r npn_protocolsprotosrybr!r!r"set_npn_protocolss  $ zSSLContext.set_npn_protocolscCst}xm|D]e}t|d}t|dksIt|dkrUtd|jt||j|qW|j|dS)Nrrrz)ALPN protocols must be 1 to 255 in length)rrrVr rErZ_set_alpn_protocols)rZalpn_protocolsrryrr!r!r"set_alpn_protocolss  $ zSSLContext.set_alpn_protocolsc Cst}yXxQt|D]C\}}}|dkr|dksO|j|kr|j|qWWntk rtjdYnX|r|jd||S)NZx509_asnTz-unable to enumerate Windows certificate storecadata)rr2rmrPermissionErrorwarningswarnload_verify_locations)r storenamepurposeZcertsrXencodingZtrustr!r!r"_load_windows_store_certss   z$SSLContext._load_windows_store_certscCs\t|tst|tjdkrNx!|jD]}|j||q4W|jdS)Nr1) isinstancerh TypeErrorsysplatform_windows_cert_storesrZset_default_verify_paths)rrrr!r!r"load_default_certss  zSSLContext.load_default_certs)ryrz)r{r|)r;r<r=rrrsr PROTOCOL_TLSrjrrrrrrrurvrr!r!r!r"rxis  rxrfrgrcCs9t|tst|tt}|jtO_|jtO_|jtt ddO_|t j krt |_ d|_nm|t jkr|jtt ddO_|jtt ddO_|jtt ddO_|jt|s|s|r|j|||n|j tkr5|j||S)zCreate a SSLContext object with default settings. NOTE: The protocol and settings may change anytime without prior deprecation. The values represent a fair balance between maximum compatibility and security. ZOP_NO_COMPRESSIONrTZOP_CIPHER_SERVER_PREFERENCEZOP_SINGLE_DH_USEZOP_SINGLE_ECDH_USE)rrhrrxroptions OP_NO_SSLv2 OP_NO_SSLv3rrrurvr verify_modecheck_hostnamerwr~_RESTRICTED_SERVER_CIPHERSrrr)rrfrgrcontextr!r!r"create_default_contexts&      r cert_reqsrFrcertfilekeyfilec Cst|tst|t|} | jtO_| jtO_|dk rZ|| _|| _|r|| r|t d|s|r| j |||s|s|r| j |||n| jt kr| j || S)a/Create a SSLContext object for Python stdlib modules All Python stdlib modules shall use this function to create SSLContext objects in order to keep common settings in one place. The configuration is less restrict than create_default_context()'s to increase backward compatibility. Nzcertfile must be specified)rrhrrxrrrrrrTload_cert_chainrrr) ryrrrrrrfrgrrr!r!r"_create_unverified_contexts"          rc@seZdZdZdddZeddZejddZedd Zed d Z d dd dZ ddZ dddZ ddZ ddZddZddZddZddZd d!Zd"d#Zd$d%d&Zd'd(ZdS))raThis class implements an interface on top of a low-level SSL object as implemented by OpenSSL. This object captures the state of an SSL connection but does not provide any network IO itself. IO needs to be performed through separate "BIO" objects which are OpenSSL's IO abstraction layer. This class does not have a public constructor. Instances are returned by ``SSLContext.wrap_bio``. This class is typically used by framework authors that want to implement asynchronous IO for SSL through memory buffers. When compared to ``SSLSocket``, this object lacks the following features: * Any form of network IO incluging methods such as ``recv`` and ``send``. * The ``do_handshake_on_connect`` and ``suppress_ragged_eofs`` machinery. NcCs||_|p||j_dS)N)_sslobjowner)rrrr!r!r"r's zSSLObject.__init__cCs |jjS)z(The SSLContext that is currently in use.)rr)rr!r!r"r,szSSLObject.contextcCs||j_dS)N)rr)rctxr!r!r"r1scCs |jjS)z%Whether this is a server-side socket.)rr)rr!r!r"r5szSSLObject.server_sidecCs |jjS)z]The currently set server hostname (for SNI), or ``None`` if no server hostame is set.)rr)rr!r!r"r:szSSLObject.server_hostnameicCs:|dk r$|jj||}n|jj|}|S)zRead up to 'len' bytes from the SSL object and return them. If 'buffer' is provided, read into this buffer and return the number of bytes read. N)rread)rrVbuffervr!r!r"r@s zSSLObject.readcCs|jj|S)zWrite 'data' to the SSL object and return the number of bytes written. The 'data' argument must support the buffer interface. )rwrite)rdatar!r!r"rLszSSLObject.writeFcCs|jj|S)zReturns a formatted version of the data in the certificate provided by the other end of the SSL channel. Return None if no certificate was provided, {} if a certificate was provided, but not validated. )rZpeer_certificate)r binary_formr!r!r" getpeercertTszSSLObject.getpeercertcCstjr|jjSdS)zReturn the currently selected NPN protocol as a string, or ``None`` if a next protocol was not negotiated or if NPN is not supported by one of the peers.N)rr&rselected_npn_protocol)rr!r!r"r]s zSSLObject.selected_npn_protocolcCstjr|jjSdS)zReturn the currently selected ALPN protocol as a string, or ``None`` if a next protocol was not negotiated or if ALPN is not supported by one of the peers.N)rr'rselected_alpn_protocol)rr!r!r"rds z SSLObject.selected_alpn_protocolcCs |jjS)z_Return the currently selected cipher as a 3-tuple ``(name, ssl_version, secret_bits)``.)rcipher)rr!r!r"rkszSSLObject.ciphercCs |jjS)zReturn a list of ciphers shared by the client during the handshake or None if this is not a valid server connection. )rshared_ciphers)rr!r!r"rpszSSLObject.shared_cipherscCs |jjS)zReturn the current compression algorithm in use, or ``None`` if compression was not negotiated or not supported by one of the peers.)r compression)rr!r!r"rvszSSLObject.compressioncCs |jjS)z8Return the number of bytes that can be read immediately.)rpending)rr!r!r"r{szSSLObject.pendingcCsH|jj|jjrD|js.tdt|j|jdS)zStart the SSL/TLS handshake.z-check_hostname needs server_hostname argumentN)r do_handshakerrrrTr[r)rr!r!r"rs     zSSLObject.do_handshakecCs |jjS)z!Start the SSL shutdown handshake.)rshutdown)rr!r!r"unwrapszSSLObject.unwrapz tls-uniquecCsF|tkrtd|dkr9tdj||jjS)zGet channel binding data for current connection. Raise ValueError if the requested `cb_type` is not supported. Return bytes of the data or None if the data is not available (e.g. before the handshake).z Unsupported channel binding typez tls-uniquez({0} channel binding type not implemented)CHANNEL_BINDING_TYPESrTNotImplementedErrorformatrZ tls_unique_cb)rcb_typer!r!r"get_channel_bindings    zSSLObject.get_channel_bindingcCs |jjS)zZReturn a string identifying the protocol version used by the current SSL channel. )rversion)rr!r!r"rszSSLObject.version)r;r<r=rrrpropertyrsetterrrrrrrrrrrrrrrrr!r!r!r"rs&          rcsGeZdZdZddddeeddeedddddddddZe dd Z e j d d Z d d Z dd dZ ddZddddZddZdddZddZddZddZddZd d!Zdd"d#Zdd$d%Zd&d'Zdd(d)Zddfd*d+Zddd,d-Zddd.d/Zddd0d1Zddd2d3Zd4d5Z d6d7Z!d8d9Z"d:d;Z#d<d=Z$d>d?Z%dd@dAZ&dBdCZ'dDdEZ(dFdGZ)dHdIZ*dJdKdLZ+dMdNZ,S)OrzThis class implements a subtype of socket.socket that wraps the underlying OS socket in an SSL context when necessary, and provides read and write methods over that channel.NFTrcCs,|r||_n|r+| r+td|rD| rDtd|rW| rW|}t||_||j_|r|jj||r|jj|||r|jj||r|jj|||_||_ ||_ ||_ ||_ ||_ |jtttkr'td|r?|r?td|jjr^| r^td||_||_||_| |_|dk rtj|d|jd|jd|jd |j|j|j|j nA| dk rtj|d | ntj|d| d| d| y|j!Wn@t"k rs}z |j#t#j$kr[d }WYdd}~XnXd }d |_%d|_&||_'|r(ye|jj(|||}t)|d ||_&|r|j}|d krtd|j*Wn%t"tfk r'|j+YnXdS)Nz5certfile must be specified for server-side operationszcertfile must be specifiedz!only stream sockets are supportedz4server_hostname can only be specified in client modez'check_hostname requires server_hostnamefamilytypeprotofilenoFTrgzHdo_handshake_on_connect should not be specified for non-blocking sockets),rrTrxrrrrr~rrr ssl_versionca_certsciphersZ getsockoptr8r9r6rrrrrrr4rrrrr settimeout gettimeoutdetach getpeernameOSErrorerrnoZENOTCONNZ_closedr _connected _wrap_socketrrclose)rrrrrrrrrrrrrrrrrreZ connectedrtimeoutr!r!r"rs                                      zSSLSocket.__init__cCs|jS)N)r)rr!r!r"rszSSLSocket.contextcCs||_||j_dS)N)rrr)rrr!r!r"rs cCstd|jjdS)NzCan't dup() %s instances)NotImplementedrnr;)rr!r!r"dupsz SSLSocket.dupcCsdS)Nr!)rmsgr!r!r" _checkClosed szSSLSocket._checkClosedcCs|js|jdS)N)rr)rr!r!r"_check_connecteds zSSLSocket._check_connectedicCs|j|jstdy|jj||SWn[tk r}z;|jdtkr~|jr~|dk rwdSdSnWYdd}~XnXdS)zORead up to LEN bytes and return them. Return zero-length string on EOF.z'Read on closed or unwrapped SSL socket.rN)rrrTrr rZ SSL_ERROR_EOFr)rrVrxr!r!r"rs    zSSLSocket.readcCs/|j|jstd|jj|S)zhWrite DATA to the underlying SSL channel. Returns number of bytes of DATA actually transmitted.z(Write on closed or unwrapped SSL socket.)rrrTr)rrr!r!r"r)s   zSSLSocket.writecCs$|j|j|jj|S)zReturns a formatted version of the data in the certificate provided by the other end of the SSL channel. Return None if no certificate was provided, {} if a certificate was provided, but not validated.)rrrr)rrr!r!r"r2s  zSSLSocket.getpeercertcCs3|j|j stj r"dS|jjSdS)N)rrrr&r)rr!r!r"r<s zSSLSocket.selected_npn_protocolcCs3|j|j stj r"dS|jjSdS)N)rrrr'r)rr!r!r"rCs z SSLSocket.selected_alpn_protocolcCs(|j|jsdS|jjSdS)N)rrr)rr!r!r"rJs  zSSLSocket.ciphercCs$|j|jsdS|jjS)N)rrr)rr!r!r"rQs  zSSLSocket.shared_cipherscCs(|j|jsdS|jjSdS)N)rrr)rr!r!r"rWs  zSSLSocket.compressioncCsY|j|jrB|dkr2td|j|jj|Stj|||SdS)Nrz3non-zero flags not allowed in calls to send() on %s)rrrTrnrr4send)rrflagsr!r!r"r^s    zSSLSocket.sendcCsb|j|jr)td|jn5|dkrHtj|||Stj||||SdS)Nz%sendto not allowed on instances of %s)rrrTrnr4sendto)rrZ flags_or_addraddrr!r!r"ris   zSSLSocket.sendtocOstd|jdS)Nz&sendmsg not allowed on instances of %s)rrn)rrrr!r!r"sendmsgsszSSLSocket.sendmsgcCs|j|jr~|dkr2td|jt|}d}x3||kry|j||d}||7}qGW|Stj|||SdS)Nrz6non-zero flags not allowed in calls to sendall() on %s)rrrTrnrVrr4sendall)rrrZamountrBrr!r!r"rys     zSSLSocket.sendallcs<|jdkr%tj|||S|j|||SdS)zSend a file, possibly by using os.sendfile() if this is a clear-text socket. Return the total number of bytes sent. N)rrisendfileZ_sendfile_use_send)rfileoffsetrB)rnr!r"rszSSLSocket.sendfilecCsV|j|jr?|dkr2td|j|j|Stj|||SdS)Nrz3non-zero flags not allowed in calls to recv() on %s)rrrTrnrr4recv)rbuflenrr!r!r"rs     zSSLSocket.recvcCs|j|r+|dkr+t|}n|dkr=d}|jru|dkretd|j|j||Stj||||SdS)Nirz8non-zero flags not allowed in calls to recv_into() on %s)rrVrrTrnrr4 recv_into)rrnbytesrr!r!r"rs     zSSLSocket.recv_intocCs@|j|jr)td|jntj|||SdS)Nz'recvfrom not allowed on instances of %s)rrrTrnr4recvfrom)rrrr!r!r"rs   zSSLSocket.recvfromcCsC|j|jr)td|jntj||||SdS)Nz,recvfrom_into not allowed on instances of %s)rrrTrnr4 recvfrom_into)rrrrr!r!r"rs   zSSLSocket.recvfrom_intocOstd|jdS)Nz&recvmsg not allowed on instances of %s)rrn)rrrr!r!r"recvmsgszSSLSocket.recvmsgcOstd|jdS)Nz+recvmsg_into not allowed on instances of %s)rrn)rrrr!r!r" recvmsg_intoszSSLSocket.recvmsg_intocCs(|j|jr |jjSdSdS)Nr)rrr)rr!r!r"rs   zSSLSocket.pendingcCs'|jd|_tj||dS)N)rrr4r)rZhowr!r!r"rs  zSSLSocket.shutdowncCs?|jr%|jj}d|_|Stdt|dS)NzNo SSL wrapper around )rrrTstr)rsr!r!r"rs   zSSLSocket.unwrapcCsd|_tj|dS)N)rr4 _real_close)rr!r!r"rs zSSLSocket._real_closec Cs[|j|j}z0|dkr8|r8|jd|jjWd|j|XdS)zPerform a TLS/SSL handshake.gN)rrrrr)rblockrr!r!r"rs   zSSLSocket.do_handshakec Cs|jrtd|jr*td|jj|d|j}t|d||_y[|rxtj ||}nd}tj |||sd|_|j r|j |SWn$t tfk rd|_YnXdS)Nz!can't connect in server-side modez/attempt to connect already-connected SSLSocket!FrT)rrTrrrrrrr4 connect_exconnectrrr)rrrrrcr!r!r" _real_connects&        zSSLSocket._real_connectcCs|j|ddS)zQConnects to remote ADDR, and then wraps the connection in an SSL channel.FN)r)rrr!r!r"rszSSLSocket.connectcCs|j|dS)zQConnects to remote ADDR, and then wraps the connection in an SSL channel.T)r)rrr!r!r"rszSSLSocket.connect_excCsItj|\}}|jj|d|jd|jdd}||fS)zAccepts a new connection from a remote client, and returns a tuple containing that new connection wrapped with a server-side SSL channel, and the address of the remote client.rrrT)r4acceptrrrr)rZnewsockrr!r!r"r s    zSSLSocket.acceptz tls-uniquecCs#|jdkrdS|jj|S)zGet channel binding data for current connection. Raise ValueError if the requested `cb_type` is not supported. Return bytes of the data or None if the data is not available (e.g. before the handshake). N)rr)rrr!r!r"rszSSLSocket.get_channel_bindingcCs |jdkrdS|jjS)z Return a string identifying the protocol version used by the current SSL channel, or None if there is no established channel. N)rr)rr!r!r"rszSSLSocket.version)-r;r<r=rrrrr5r6rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr!r!)rnr"rsX    T                       rTc CsCtd|d|d|d|d|d|d|d|d |d | S) Nrrrrrrrrrr)r) rrrrrrrrrrr!r!r"r)s   rc Csddlm}ddlm}d}d}y'|j|ddjd}Wn(tk r}td||fYn<X||dd|}||d|f|ddSdS)aReturn the time in seconds since the Epoch, given the timestring representing the "notBefore" or "notAfter" date from a certificate in ``"%b %d %H:%M:%S %Y %Z"`` strptime format (C locale). "notBefore" or "notAfter" dates must use UTC (RFC 5280). Month is one of: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec UTC should be specified as GMT (see ASN1_TIME_print()) r)strptime)timegmJanFebMarAprMayJunJulAugSepOctNovDecz %d %H:%M:%S %Y GMTNr^r>z*time data %r does not match format "%%b%s"r]) rrrr r r r r rrrr)ZtimerZcalendarrindextitlerT)Z cert_timerrZmonthsZ time_formatZ month_numberZttr!r!r"cert_time_to_seconds9s ' rz-----BEGIN CERTIFICATE-----z-----END CERTIFICATE-----cCs?ttj|dd}tdtj|ddtdS)z[Takes a certificate in binary DER format and returns the PEM version of it as a string.ASCIIstrict @)rbase64Zstandard_b64encode PEM_HEADERtextwrapZfill PEM_FOOTER)Zder_cert_bytesfr!r!r"DER_cert_to_PEM_certZsrcCs|jtstdt|jjtsDtdt|jtttt }tj|j ddS)zhTakes a certificate in ASCII PEM format and returns the DER-encoded version of it as a byte sequencez(Invalid PEM encoding; must start with %sz&Invalid PEM encoding; must end with %srr) rrrTstripendswithrrVrZ decodebytesencode)Zpem_cert_stringdr!r!r"PEM_cert_to_DER_certcs  #r$c Cs|\}}|dk r!t}nt}t|d|d|}t|/}|j|}|jd} WdQRXWdQRXt| S)zRetrieve the certificate from the server at the specified address, and return it as a PEM-encoded string. If 'ca_certs' is specified, validate the server cert against it. If 'ssl_version' is specified, use it in the connection attempt.NrrfT)rr_create_stdlib_contextr7rrr) rrrhostZportrrrZsslsockZdercertr!r!r"get_server_certificateps     r'cCstj|dS)Nz )_PROTOCOL_NAMESrU)Z protocol_coder!r!r"get_protocol_namesr))brrrOrrFrr` collectionsrZenumrZ_EnumrZ_IntEnumrrrrrr r r r r rrrrrrrkrrorrrrr ImportErrorr#r$r%r&r'r(_convertr;r)rr*Z __members__itemsr(ZPROTOCOL_SSLv2r} NameErrorrr2r3r4r5r6r7r8r9rrrrZ socket_errorZHAS_TLS_UNIQUErrrrTr:rNrSr[r\r_rhrurxrvrrZ_create_default_https_contextr%rrrrrrrr$r'r)r!r!r!r"Ys      ."      "    "     1 4  M/  '