Browse Source

draft for authority getter

master
Edoardo Putti 8 years ago
parent
commit
e3f608a229
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      lookup.py

+ 7
- 0
lookup.py View File

@ -38,9 +38,16 @@ class CALookup(object):
def __getitem__(self, ca_id):
if SSHAuthority(ca_id):
return SSHAuthority(ca_id)
elif SSLAuthority(ca_id):
return SSLAuthority(ca_id)
else:
raise IndexError('Unknown CA "%s"' % ca_id)
"""
"""


Loading…
Cancel
Save