コード例 #1
0
ファイル: __init__.py プロジェクト: RootedWarfare/cassle
 def __init__(self):
     self.certdb_dir = os.path.expanduser(config.NSS_DB_DIR)
     nss.nss_init(self.certdb_dir)
     nss.enable_ocsp_checking()
     self.certdb = nss.get_default_certdb()
コード例 #2
0
 def test_enable_ocsp_checking(self):
     nss.enable_ocsp_checking()
     nss.disable_ocsp_checking()
     nss.enable_ocsp_checking(self.certdb)
     nss.disable_ocsp_checking(self.certdb)
コード例 #3
0
ファイル: __init__.py プロジェクト: pombredanne/cassle
 def __init__(self):
     self.certdb_dir = os.path.expanduser(config.NSS_DB_DIR)
     nss.nss_init(self.certdb_dir)
     nss.enable_ocsp_checking()
     self.certdb = nss.get_default_certdb()
コード例 #4
0
ファイル: test_ocsp.py プロジェクト: vadzimt/python-nss
 def test_enable_ocsp_checking(self):
     nss.enable_ocsp_checking()
     nss.disable_ocsp_checking()
     nss.enable_ocsp_checking(self.certdb)
     nss.disable_ocsp_checking(self.certdb)