def __getitem__(self, idx):
     # type: (int) -> X509_Name_Entry
     if not 0 <= idx < self.entry_count():
         raise IndexError("index out of range")
     return X509_Name_Entry(m2.x509_name_get_entry(self.x509_name, idx))
def x509_name2list(name):
    for i in range(0, name.entry_count()):
        yield X509.X509_Name_Entry(m2.x509_name_get_entry(name._ptr(), i), _pyfree = 0)
Beispiel #3
0
def x509_name2list(name):
    for i in range(0, name.entry_count()):
        yield X509.X509_Name_Entry(m2.x509_name_get_entry(name._ptr(), i),
                                   _pyfree=0)
Beispiel #4
0
 def __getitem__(self, idx):
     # type: (int) -> X509_Name_Entry
     if not 0 <= idx < self.entry_count():
         raise IndexError("index out of range")
     return X509_Name_Entry(m2.x509_name_get_entry(self.x509_name, idx))