Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | move two asserts much closer to call site | Paul Kehrer | 2015-09-25 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | convert the rest of the openssl backend to using openssl_assert | Paul Kehrer | 2015-09-25 | 8 | -87/+90 | |
| |_|/ |/| | | ||||||
* | | | remove unnecessary check | Paul Kehrer | 2015-09-25 | 1 | -1/+0 | |
| | | | ||||||
* | | | change some asserts back since they're not openssl specific | Paul Kehrer | 2015-09-25 | 1 | -18/+19 | |
| | | | | | | | | | | | | plus bonus better exception msg | |||||
* | | | start converting asserts to a function call | Paul Kehrer | 2015-09-25 | 1 | -166/+185 | |
| |/ |/| | | | | | | | This prevents situations where asserts are bypassed when running python with -O. | |||||
* | | Add X963KDF from ANSI X9.63:2001 | Simo Sorce | 2015-09-24 | 1 | -0/+70 | |
|/ | | | | | | | | | | The implemention allows the use a Hash function to implement a KDF very similar to ConcatKDFHash, just different enough to require a separate derivation function. Closes #2203 Signed-off-by: Simo Sorce <simo@redhat.com> | |||||
* | should have _asn1_* utility functions in a common place | Erik Trauschke | 2015-09-24 | 2 | -73/+63 | |
| | ||||||
* | Resolve an unusual test bug related to initializing the bindings | Paul Kehrer | 2015-08-29 | 2 | -7/+6 | |
| | | | | | | | | | | | | | | | | | | | To make calls against the "SSL" parts of OpenSSL you need to call SSL_library_init. There are multiple ways this can be called: * If you're using the same OpenSSL in cryptography as you are in your Python then Python will call it for you. * If you import the openssl backend. These tests need SSL_library_init to be called. When run in our CI SSL_library_init is called because during the parametrization step the OpenSSL backend is imported (thus triggering it). However, you can also run tests directly via py.test and without this change py.test tests/hazmat/bindings/test_openssl.py would crash if you had cryptography linked against a different OpenSSL than your Python used. | |||||
* | add conditional removal for SET_CERT_CB | Paul Kehrer | 2015-08-25 | 1 | -1/+5 | |
| | ||||||
* | set the default stringmask to utf8 | Paul Kehrer | 2015-08-22 | 1 | -0/+6 | |
| | | | | | This corrects a problem where older OpenSSL versions don't do this by default. fixes #2291 | |||||
* | Move signature type checks | Stanisław Pitucha | 2015-08-14 | 3 | -8/+9 | |
| | | | | Move the point of checking signatures, as suggested by alex in PR 2262. | |||||
* | Merge pull request #2262 from viraptor/non-bytes-signatures | Paul Kehrer | 2015-08-12 | 3 | -0/+8 | |
|\ | | | | | Ensure early exeption on non-bytes signature | |||||
| * | Enforce signature type in ECDSA and add tests | Stanisław Pitucha | 2015-08-12 | 1 | -0/+2 | |
| | | | | | | | | | | Ensure that ECDSA signatures are bytes to match RSA/DSA and add tests for all three. | |||||
| * | Ensure early exeption on non-bytes signature | Stanisław Pitucha | 2015-08-11 | 2 | -0/+6 | |
| | | | | | | | | | | Signature must be in bytes. If the check is skipped, verify() can explode later in cffi call in _verify_pkey_ctx() for example. | |||||
* | | Merge pull request #2250 from reaperhulk/fix-2246 | Alex Gaynor | 2015-08-12 | 1 | -0/+26 | |
|\ \ | |/ |/| | resolve incorrect docs/naming around DSA (r, s) tuple encode/decode | |||||
| * | resolve incorrect docs/naming around DSA (r, s) tuple encode/decode | Paul Kehrer | 2015-08-10 | 1 | -0/+26 | |
| | | ||||||
* | | switch the openssl backend to use the OID namespace | Paul Kehrer | 2015-08-10 | 2 | -26/+28 | |
|/ | ||||||
* | Merge pull request #2233 from reaperhulk/encode-nocheck | Alex Gaynor | 2015-08-09 | 1 | -0/+9 | |
|\ | | | | | add support for OCSPNoCheck to the CertificateBuilder | |||||
| * | improve comment for ocsp_nocheck encoding | Paul Kehrer | 2015-08-09 | 1 | -3/+2 | |
| | | ||||||
| * | add support for OCSPNoCheck to the CertificateBuilder | Paul Kehrer | 2015-08-09 | 1 | -0/+10 | |
| | | ||||||
* | | support issuer alternative name encoding | Paul Kehrer | 2015-08-09 | 1 | -2/+3 | |
|/ | ||||||
* | move encode out of try blocks | Paul Kehrer | 2015-08-09 | 1 | -2/+2 | |
| | ||||||
* | simplify the CSRBuilder | Paul Kehrer | 2015-08-08 | 1 | -9/+4 | |
| | ||||||
* | remove a lot of if/elif chains in the certificate builder | Paul Kehrer | 2015-08-08 | 1 | -23/+19 | |
| | ||||||
* | support InhibitAnyPolicy in CertificateBuilder | Paul Kehrer | 2015-08-08 | 1 | -0/+13 | |
| | ||||||
* | add support for AuthorityKeyIdentifier in CertificateBuilder | Paul Kehrer | 2015-08-08 | 1 | -0/+32 | |
| | ||||||
* | add support for encoding SubjectKeyIdentifier to CertificateBuilder | Paul Kehrer | 2015-08-08 | 1 | -0/+13 | |
| | ||||||
* | move distpoint fullname/relativename to consts in backends.openssl.x509 | Paul Kehrer | 2015-08-08 | 2 | -5/+9 | |
| | ||||||
* | switch to _encode_general_names. | Paul Kehrer | 2015-08-08 | 1 | -8/+1 | |
| | | | | I knew I made that for a reason, thanks Alex | |||||
* | remove a double for loop that made literally no sense | Paul Kehrer | 2015-08-08 | 1 | -6/+5 | |
| | ||||||
* | switch ReasonFlags bit string setting to use a dict mapping | Paul Kehrer | 2015-08-08 | 1 | -40/+18 | |
| | ||||||
* | support relativename encoding using X509_NAME | Paul Kehrer | 2015-08-08 | 1 | -3/+6 | |
| | | | | X509_NAME contains a STACK_OF(X509_NAME_ENTRY) which we duplicate | |||||
* | support CRLDistributionPoints in the CertificateBuilder | Paul Kehrer | 2015-08-08 | 1 | -0/+93 | |
| | ||||||
* | Merge pull request #2222 from reaperhulk/memleak-partdeux | Alex Gaynor | 2015-08-06 | 1 | -0/+2 | |
|\ | | | | | X509_add_ext dupes the X509_EXTENSION when adding it. fix the leak | |||||
| * | X509_add_ext dupes the X509_EXTENSION when adding it. fix the leak | Paul Kehrer | 2015-08-06 | 1 | -0/+2 | |
| | | ||||||
* | | fix a memory leak in certificate creation during extension creation | Paul Kehrer | 2015-08-06 | 1 | -1/+1 | |
|/ | ||||||
* | rename sign_x509_certificate backend method to create_x509_certificate | Paul Kehrer | 2015-08-06 | 3 | -5/+5 | |
| | ||||||
* | we still need to gc in encode_subject_alt_name | Paul Kehrer | 2015-08-05 | 1 | -0/+3 | |
| | ||||||
* | refactor SAN encoding to separate out general names in openssl backend | Paul Kehrer | 2015-08-05 | 1 | -7/+8 | |
| | ||||||
* | Merge pull request #2180 from reaperhulk/easy-conditional-fix | Donald Stufft | 2015-08-04 | 2 | -1/+432 | |
|\ | | | | | create a ConditionalLibrary and remove unsupported items | |||||
| * | change approach for pypy performance reasons | Paul Kehrer | 2015-08-04 | 1 | -12/+13 | |
| | | ||||||
| * | only copy the attrs we know should exist (courtesy dstufft) | Paul Kehrer | 2015-08-03 | 1 | -7/+9 | |
| | | ||||||
| * | pass in the imports to make it a bit clearer what's going on | Paul Kehrer | 2015-08-03 | 1 | -3/+3 | |
| | | ||||||
| * | move the attr setting to the __init__ of _ConditionalLibrary | Paul Kehrer | 2015-08-03 | 1 | -12/+10 | |
| | | ||||||
| * | create a ConditionalLibrary and remove unsupported items | Paul Kehrer | 2015-08-01 | 2 | -1/+431 | |
| | | ||||||
* | | Merge pull request #2193 from reaperhulk/encode-aia | Alex Gaynor | 2015-08-03 | 1 | -0/+30 | |
|\ \ | | | | | | | Support AuthorityInformationAccess in CertificateBuilder | |||||
| * | | add support for AIA to CertificateBuilder and OpenSSL backend | Paul Kehrer | 2015-08-03 | 1 | -1/+7 | |
| | | | ||||||
| * | | encode authority information access | Paul Kehrer | 2015-08-03 | 1 | -0/+24 | |
| | | | ||||||
* | | | Fixes #2199 -- allow SSH keys to have spaces in their comments | Alex Gaynor | 2015-08-03 | 1 | -2/+2 | |
| | | | ||||||
* | | | support keyusage and extendedkeyusage in certificatebuilder | Paul Kehrer | 2015-08-03 | 1 | -0/+4 | |
|/ / |