summaryrefslogtreecommitdiff
path: root/src/cryptography/hazmat/_oid.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix for #8854 (#8855)Harmin Parra Rueda2023-05-031-0/+1
| | | | | | | | | | | | | | | * Fix for #8854 Fix for issue #8854 * Fix for issue #8854 Fix for issue #8854 * versionadded --------- Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* Support msCertificateTemplate extension (#8695)Paul Kehrer2023-04-101-0/+2
| | | | | | | * support ms certificate template * contortions for rust coverage * review feedback
* Use from __future__ import annotations everywhere (#8643)Alex Gaynor2023-03-311-0/+2
|
* Added support for OCSP AcceptableResponses extension (#8617)Alex Gaynor2023-03-271-0/+1
| | | fixes #8589
* Add *_SHA3 signature algorithms to OID <-> hash map (#7819)jeanluc2022-11-171-0/+8
| | | | | | | * Add test for issue 7818 * Add *_SHA3 signature algorithms to OID <-> hash map * Use type instead of __class__
* X.509/Certificate: Add `tbs_precertificate_bytes` property (#7279)William Woodruff2022-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `tbs_precertificate_bytes` property * docs/x509: document `tbs_precertificate_bytes` Signed-off-by: William Woodruff <william@trailofbits.com> * tests/x509: add two trivial tests Signed-off-by: William Woodruff <william@trailofbits.com> * x509/base: fix lint Signed-off-by: William Woodruff <william@trailofbits.com> * oid: add CERTIFICATE_TRANSPARENCY (1.3.6.1.4.1.11129.2.4.4) Signed-off-by: William Woodruff <william@trailofbits.com> * hazmat/oid: rehome CERTIFICATE_TRANSPARENCY under ExtendedKeyUsageOID Signed-off-by: William Woodruff <william@trailofbits.com> * docs/x509: fix link, help the spellchecker Signed-off-by: William Woodruff <william@trailofbits.com> * x509: Raise ValueError when we can't filter SCT list extension * tests: Expect a `ValueError` when accessing `tbs_precertificate_bytes` in default example * tests, vectors: Add TBS precert vector for test comparison * docs/x509: document the `CERTIFICATE_TRANSPARENCY` OID Signed-off-by: William Woodruff <william@trailofbits.com> * docs/x509: elaborate `tbs_precertificate_bytes` Signed-off-by: William Woodruff <william@trailofbits.com> * rust/x509: remove unused OID Signed-off-by: William Woodruff <william@trailofbits.com> * x509/certificate: tweak error Signed-off-by: William Woodruff <william@trailofbits.com> * tests/x509: reorganize Signed-off-by: William Woodruff <william@trailofbits.com> * Update src/rust/src/x509/certificate.rs Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * tests/x509: more reorg, rename Signed-off-by: William Woodruff <william@trailofbits.com> * docs: document new testvector Signed-off-by: William Woodruff <william@trailofbits.com> * docs: coax the spellchecker Signed-off-by: William Woodruff <william@trailofbits.com> * tests/x509: use a cert that doesn't require SHA-1 Signed-off-by: William Woodruff <william@trailofbits.com> * tests/x509: test for no extensions at all Signed-off-by: William Woodruff <william@trailofbits.com> Co-authored-by: Alex Cameron <asc@tetsuo.sh> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Migrate ObjectIdentifier to Rust (#7153)Alex Gaynor2022-04-301-64/+3
|
* Convert some old-style formatting to f strings (#6945)Alex Gaynor2022-03-131-10/+8
|
* Added OID for #6920 (#6925)sanchayanghosh2022-03-031-0/+1
| | | | | | | | | | | * Added OID * Added to docuemntation for IPSec SAs * Update docs/x509/reference.rst to correct the version change. Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com> Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* Don't explicitly define __ne__ any longer (#6908)Alex Gaynor2022-02-271-3/+0
| | | At some point it gained a default that was the same as what we were implementing.
* refs #6835 -- added oid constants for SHA3 signatures (#6850)Alex Gaynor2022-02-071-0/+8
|
* Remove explicit subclassing of object now that all classes are new-style (#6830)Alex Gaynor2022-01-301-11/+11
| | | As someone who first with Python in 2.4 or so, this habit is going to be hard to break.
* consistently use object for other in eq/ne types (#6756)Paul Kehrer2021-12-261-2/+2
| | | | this appears to be best practice and also makes the mypy type-coverage analysis happier
* add two additional DSA signature algorithm oids & test dsa_with_sha224 (#6483)Paul Kehrer2021-10-261-0/+2
|
* resolve lazy import race condition (#6272)Paul Kehrer2021-09-121-3/+265
| | | some private constants are no longer re-exported to the same spots
* Strict typehints for extensions and OIDs (#5870)Mathias Ertl2021-02-271-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * add typehint for name * strictly type ObjectIdentifier * explicit reexport for mypy * type (most) of extensions.py * minor cleanup * more consistently return None in constructors * revert explicit reexport, as requested * use _make_sequence_methods for now (#5870) * mark oid as normal type-hinted property so that classes can access it * fix spelling (upper case) use short form for reference * annotate as ClassVar * add type ignore for special extension class
* add typehint for name (#5856)Mathias Ertl2021-02-211-1/+1
|
* add typehints for read only properties (#5826)Mathias Ertl2021-02-151-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * add typehints for read only properties * fix typing in test cases * fix last missing assertion * add typehints to all read_only_properties where type hints are already available * check for isnot None instead, as per PR suggestion * convert read_only_property to @property decorators * remove unused import * use List instead of Iterable for return values * use @property instead of read_only_property * fix type errors * remove last occurance of annotated read_only_property * use is not None check (works because we now return list) * fix unused import
* Added typing for a bunch of methods (#5737)Alex Gaynor2021-02-011-1/+1
|
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-091-1/+0
|
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-201-12/+17
|
* Let Oid enforce positive decimal integers (#5053)Noel Remy2019-11-101-1/+6
| | | | | | Failing that would lead to an OpenSSL error when calling OBJ_txt2obj at serialization. Adds basic tests for oids.
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-1/+1
|
* move ObjectIdentifier to break an upcoming import cycle (#4550)Paul Kehrer2018-10-301-0/+67