diff options
| author | William Woodruff <william@trailofbits.com> | 2022-05-19 16:15:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-20 04:15:16 +0800 |
| commit | e087b3e33c1cbd3dbc64111e1f5a3414cf24fff8 (patch) | |
| tree | 5f307ba511159535f3afe1ac99c6fc3d0875d8f4 /src/cryptography | |
| parent | 29724b1fb6484454c767c3c0084918e81ed41b9d (diff) | |
| download | cryptography-e087b3e33c1cbd3dbc64111e1f5a3414cf24fff8.tar.gz | |
CT: add `SignedCertificateTimestamp.extensions` (#7237)
Signed-off-by: William Woodruff <william@trailofbits.com>
Diffstat (limited to 'src/cryptography')
| -rw-r--r-- | src/cryptography/x509/certificate_transparency.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/x509/certificate_transparency.py b/src/cryptography/x509/certificate_transparency.py index f1e3055b2..3539d04c4 100644 --- a/src/cryptography/x509/certificate_transparency.py +++ b/src/cryptography/x509/certificate_transparency.py @@ -78,5 +78,11 @@ class SignedCertificateTimestamp(metaclass=abc.ABCMeta): Returns the signature for this SCT. """ + @abc.abstractproperty + def extensions(self) -> bytes: + """ + Returns the raw bytes of any extensions for this SCT. + """ + SignedCertificateTimestamp.register(rust_x509.Sct) |
