OLD | NEW |
1 """Class representing an X.509 certificate.""" | 1 """Class representing an X.509 certificate.""" |
2 | 2 |
3 from utils.ASN1Parser import ASN1Parser | 3 from utils.asn1parser import ASN1Parser |
4 from utils.cryptomath import * | 4 from utils.cryptomath import * |
5 from utils.keyfactory import _createPublicRSAKey | 5 from utils.keyfactory import _createPublicRSAKey |
6 | 6 |
7 | 7 |
8 class X509: | 8 class X509: |
9 """This class represents an X.509 certificate. | 9 """This class represents an X.509 certificate. |
10 | 10 |
11 @type bytes: L{array.array} of unsigned bytes | 11 @type bytes: L{array.array} of unsigned bytes |
12 @ivar bytes: The DER-encoded ASN.1 certificate | 12 @ivar bytes: The DER-encoded ASN.1 certificate |
13 | 13 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 if e[0] == cryptlib_py.CRYPT_ERROR_NOTFOUND: | 133 if e[0] == cryptlib_py.CRYPT_ERROR_NOTFOUND: |
134 returnVal = None | 134 returnVal = None |
135 return returnVal | 135 return returnVal |
136 finally: | 136 finally: |
137 cryptlib_py.cryptDestroyCert(c) | 137 cryptlib_py.cryptDestroyCert(c) |
138 | 138 |
139 def writeBytes(self): | 139 def writeBytes(self): |
140 return self.bytes | 140 return self.bytes |
141 | 141 |
142 | 142 |
OLD | NEW |