Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dead code | Glyph | 2015-06-27 | 1 | -1/+0 |
| | |||||
* | consistency about underscores and prefixes | Glyph | 2015-06-27 | 1 | -6/+6 |
| | |||||
* | space before star | Glyph | 2015-06-27 | 1 | -3/+3 |
| | |||||
* | nothing pseudo about it | Glyph | 2015-06-27 | 1 | -11/+2 |
| | |||||
* | handle previous registration by raising RuntimeError | Glyph | 2015-06-27 | 2 | -5/+3 |
| | |||||
* | unnecessary belt-and-suspenders error checking | Glyph | 2015-06-27 | 1 | -2/+0 |
| | |||||
* | coding standard | Glyph | 2015-06-27 | 1 | -1/+2 |
| | |||||
* | clear the error queue | Glyph | 2015-06-27 | 1 | -0/+4 |
| | | | | | | | make sure we're not in an error state when we start, because then all bets are off and we might consume an error we didn't cause. then clear the error queue, which restores the behavior of the way the C module was previously checking for existence of its engine. | ||||
* | bind ERR_clear_error | Glyph | 2015-06-27 | 1 | -0/+1 |
| | |||||
* | also retain method with a global reference | Glyph | 2015-06-27 | 1 | -5/+7 |
| | |||||
* | move everything to module scope; much simpler that way | Glyph | 2015-06-27 | 1 | -67/+58 |
| | |||||
* | don't need the intermediary 'struct' declaration. | Glyph | 2015-06-27 | 1 | -10/+8 |
| | |||||
* | comply with C coding standard, for which there is no linter | Glyph | 2015-06-26 | 2 | -9/+9 |
| | |||||
* | lint | Glyph | 2015-06-26 | 1 | -0/+1 |
| | |||||
* | pointer shenanigans | Glyph | 2015-06-26 | 2 | -11/+11 |
| | | | | | | | | apparently (?) ENGINE_by_id treats its ID as an opaque *pointer* key and not actually as a string, and while CPython's CFFI support seems to manage to preserve the pointer identity when using the same Python string, PyPy doesn't. Fix things to use a cffi-wrapped pointer again and tests pass on PyPy. | ||||
* | remove remaining vestiges, make adding twice work | Glyph | 2015-06-26 | 7 | -212/+4 |
| | |||||
* | python implementation | Glyph | 2015-06-26 | 1 | -1/+65 |
| | |||||
* | use new constant | Glyph | 2015-06-26 | 1 | -1/+1 |
| | |||||
* | compare contents and not pointers | Glyph | 2015-06-26 | 1 | -9/+12 |
| | |||||
* | a place for a couple of new constants to live | Glyph | 2015-06-26 | 1 | -0/+2 |
| | |||||
* | deopaque a couple of things | Glyph | 2015-06-26 | 1 | -2/+11 |
| | |||||
* | Merge pull request #2069 from alex/param-ordering | Paul Kehrer | 2015-06-26 | 3 | -20/+10 |
|\ | | | | | Make the parameter ordering in sign() consistent with other code | ||||
| * | fix this test | Alex Gaynor | 2015-06-26 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' into param-ordering | Alex Gaynor | 2015-06-26 | 2 | -3/+35 |
| |\ | |||||
| * | | fixed docs | Alex Gaynor | 2015-06-26 | 1 | -1/+1 |
| | | | |||||
| * | | Make the parameter ordering in sign() consistent with other code | Alex Gaynor | 2015-06-26 | 3 | -18/+8 |
| | | | |||||
* | | | Merge pull request #2068 from reaperhulk/wildcard-idna-san-vector | Alex Gaynor | 2015-06-26 | 2 | -0/+21 |
|\ \ \ | |_|/ |/| | | add wildcard IDNA SAN | ||||
| * | | add wildcard IDNA SAN | Paul Kehrer | 2015-06-26 | 2 | -0/+21 |
| |/ | |||||
* | | Merge pull request #2066 from reaperhulk/csr-builder-set-subject | Alex Gaynor | 2015-06-26 | 2 | -3/+35 |
|\ \ | |/ |/| | fix coverage in CSR builder | ||||
| * | test notimplementederror for unsupported csr extensions in backends | Paul Kehrer | 2015-06-26 | 2 | -0/+18 |
| | | |||||
| * | add test for CSR builder setting subject twice | Paul Kehrer | 2015-06-26 | 1 | -3/+17 |
|/ | |||||
* | Merge pull request #2064 from reaperhulk/simplify-x509 | Alex Gaynor | 2015-06-26 | 1 | -40/+0 |
|\ | | | | | simplify x509 csr builder tests | ||||
| * | simplify x509 csr builder tests | Paul Kehrer | 2015-06-26 | 1 | -40/+0 |
| | | |||||
* | | Merge pull request #2063 from reaperhulk/improve-backend-docs | Alex Gaynor | 2015-06-26 | 1 | -0/+31 |
|\ \ | |/ |/| | Improve backend interface docs | ||||
| * | add two missing methods to backend interface docs | Paul Kehrer | 2015-06-26 | 1 | -0/+31 |
|/ | |||||
* | Merge pull request #2045 from sigmavirus24/csr-builder | Paul Kehrer | 2015-06-26 | 9 | -3/+543 |
|\ | | | | | Adds CSR Builder (Redux of #1927) | ||||
| * | Use SECP256R1 instead of SECT283K1 in CSR tests | Ian Cordasco | 2015-06-24 | 2 | -4/+4 |
| | | |||||
| * | Add test for unicode attributes in CSRs | Ian Cordasco | 2015-06-24 | 1 | -0/+32 |
| | | | | | | | | | | This creates a CSR, converts it to bytes, and then loads it again to ensure that the unicode strings are parsed properly. | ||||
| * | Skip tests when the EC curve is unsupported | Ian Cordasco | 2015-06-24 | 2 | -0/+3 |
| | | |||||
| * | Use utf8 to encode attribute values instead of ascii | Ian Cordasco | 2015-06-24 | 1 | -2/+2 |
| | | |||||
| * | Add tests to the CSR Builder for EC and DSA keys | Ian Cordasco | 2015-06-24 | 3 | -5/+120 |
| | | | | | | | | | | | | This skips certain tests on certain versions of differences in how X509_REQ_sign works on those versions. A separate pull request will address those differences. | ||||
| * | Simplify test for unsupported extensions | Ian Cordasco | 2015-06-24 | 1 | -9/+1 |
| | | |||||
| * | Address review comments around add_extension method | Ian Cordasco | 2015-06-24 | 3 | -6/+8 |
| | | | | | | | | | | | | | | | | | | - Fix typo in the docs (s/buidlder/builder/) - Remove default from the method declaration and docs - Replace ValueError with NotImpelementedError for unsupported X.509 extensions - Add TODO comment as requested by Alex - Fix test to pass critical=False since it no longer is a default value | ||||
| * | Only allow subject_name to be set once on a Builder | Ian Cordasco | 2015-06-24 | 1 | -0/+2 |
| | | |||||
| * | Unconditionally encode values to ascii | Ian Cordasco | 2015-06-24 | 1 | -5/+2 |
| | | |||||
| * | Properly use RSA fixtures to generate private keys | Ian Cordasco | 2015-06-24 | 2 | -5/+11 |
| | | |||||
| * | Update registering pp with ffi.gc | Ian Cordasco | 2015-06-24 | 1 | -4/+3 |
| | | | | | | | | | | This makes it more in-line with existing functions, e.g., L40-L47 of src/cryptography/hazmat/backends/openssl/x509.py @ b0e8ffa | ||||
| * | Update CSR tests and implementation | Ian Cordasco | 2015-06-24 | 3 | -23/+8 |
| | | | | | | | | | | | | | | | | | | | | - Use keyword arguments for x509.BasicConstraints in tests (missed in b790edbdc8fb9a026353d6fb99994326197705c7). - Place X509_request garbage collection under assertion. - Assert that X509 extensions created are not null. - Don't copy the extensions list in CertificateSigningBuilder. They're never appended to, so copying isn't necessary. - Use RSA key fixtures instead of generating new ones on each test run | ||||
| * | Fix new tests to pass text value to NameAttribute | Ian Cordasco | 2015-06-24 | 1 | -20/+20 |
| | | |||||
| * | Address code review regarding style and gc | Ian Cordasco | 2015-06-24 | 3 | -20/+17 |
| | | | | | | | | | | | | | | | | | | - Use keyword arguments for x509.BasicConstraints in several places - Use SHA256 instead of SHA1 in documented examples - Give function variables meaningful names in _encode_asn1_str - Accept a x509.BasicConstraints object in _encode_basic_constraints - Properly garbage-collect some things - Raise a NotImplementedError instead of a ValueError |