summaryrefslogtreecommitdiff
path: root/src/_cffi_src
Commit message (Collapse)AuthorAgeFilesLines
* Add ssl version constants (#5662)Maximilian Hils2020-12-211-0/+7
| | | | | | | | | | | | | | | * add ssl version constants * try to fix ci * try harder to fix ci * security: if unavailable, set protocol constants to nonexistent version * make linter happy * remove dtls constants * remove superfluous comment
* add missing verification parameter flags (#5643)Eduard Iskandarov2020-12-131-0/+2
|
* Update APIs to use non-deprecated OpenSSL ones where possible (#5633)Alex Gaynor2020-12-104-4/+17
| | | cherry picked from #4920
* re-add Cryptography_HAS_TLSEXT_HOSTNAME and port 3.3.1 changelog (#5627)Paul Kehrer2020-12-091-0/+6
|
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-0939-40/+0
|
* Switch black to py36 as the minimum version (#5608)Alex Gaynor2020-12-081-1/+1
|
* Add support for RSA signature recovery (#5573)Zoltan Kelemen2020-12-071-0/+3
| | | | | | | | | | | | | | | | | | * Removed unused argument. * Added support for RSA signature recovery. * Syntatic corrections for passing pep8 tests. * Corrected typo. * Added test of invalid Prehashed parameter to RSA signature recover. * Renamed recover to a more descriptive name. * Extended RSA signature recovery with option to return full data (not only the digest part). * Added missing words to pass spell check.
* Added tls bindings for new OpenSSL APIs (#5595)Alex Gaynor2020-12-011-4/+26
| | | | fixes #5379 closes #5483
* fixes #4531 -- support encoding SCTs in certificates (#5594)Alex Gaynor2020-11-301-4/+6
|
* Don't build our custom osrandom engine on libressl (#5593)Alex Gaynor2020-11-291-2/+2
| | | | | | | * Don't build our custom osrandom engine on libressl As far as I can tell it's never used on LibreSSL -- they're `RAND_bytes` function unconditionally calls `arc4random_buf` * Update cryptography.py
* define OAEP properties for all openssl versions (#5589)Paul Kehrer2020-11-261-7/+3
| | | | In 3.0 these aren't macros so we can't test this way. All our supported OpenSSLs have these bindings now and LibreSSL does not.
* garbage collect dead code (#5562)Alex Gaynor2020-11-111-4/+0
|
* Always rely on OpenSSL's builtin locking callbacks (#5561)Alex Gaynor2020-11-112-139/+1
|
* Remove some dead constants (#5518)Alex Gaynor2020-10-263-23/+0
|
* fixes #5513 update comment on why we can't have nice things (#5517)Alex Gaynor2020-10-261-11/+3
|
* Simplify a number of branches around libressl (#5515)Alex Gaynor2020-10-262-24/+8
|
* Delete all the 1.0.2 code (#5511)Alex Gaynor2020-10-2516-462/+30
|
* PKCS7SignatureBuilder now supports three serializations (#5497)Paul Kehrer2020-10-241-0/+1
| | | | | | | | * PKCS7SignatureBuilder now supports three serializations PEM, DER, and SMIME. SMIME embeds the S/MIME headers and has the detached signature concept. * thanks libre
* smime signer support (#5465)Paul Kehrer2020-09-191-0/+1
| | | | | | | | | | | | | | | | | | | * smime signer support * fix ed25519 check * change some wording * python 2.7... * review feedback * s/secure/signed * do some verification in the tests * review feedback * doc return value
* add pkcs7/smime bindings (#5458)Paul Kehrer2020-09-131-0/+12
| | | | | | | | | | | | | * add pkcs7/smime bindings * Update src/_cffi_src/openssl/pkcs7.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * Update src/_cffi_src/openssl/pkcs7.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* re-add a few engine bindings for advanced users (#5449)Paul Kehrer2020-09-011-0/+15
| | | | | | | | | * re-add a few engine bindings for advanced users For users who are capable of compiling cryptography against custom openssl and properly using these functions this hopefully allows PKCS11 usage through OpenSSL engines. * forgot to save my buffer
* return from void function cannot compile on solaris studio (#5385)stphnlyd2020-08-111-1/+1
|
* define SYS_getrandom on linux arm64 (#5378)Alex Gaynor2020-08-051-1/+3
|
* support PKCS7 certificate parsing (#5371)Paul Kehrer2020-08-041-0/+2
| | | | | | | | | | | | | * support PKCS7 certificate parsing * refcounts are different in 1.0.2 * rename the functions * black * empty commit * review feedback
* handle unnamed-but-really-named curves in 1.0.2u (#5362)Paul Kehrer2020-07-301-0/+3
| | | | | | | | | * handle unnamed-but-really-named curves in 1.0.2u * handle openssl 1.0.2 not supporting better install commands on make * do what openssl didn't feel was necessary in 1.0.2t/u I didn't bind the named curve constant, fight me.
* remove some more constants we don't need (#5361)Paul Kehrer2020-07-301-4/+0
| | | these are gone in 3.0 anyway and were removed in that draft PR
* shrink bindings more (#5356)Paul Kehrer2020-07-2710-82/+0
| | | | | | | * shrink bindings more * readd a binding we do need * readd two more bindings we need
* remove every error we don't use in cryptography or pyopenssl (#5355)Paul Kehrer2020-07-271-108/+7
| | | | | | | | | | * remove every error we don't use in cryptography or pyopenssl sorry external consumers, carrying things we don't use and don't have downstream tests for has become too much of a burden * re-add a constant we need for tests for now * pyopenssl needs these three
* more error simplification (#5354)Paul Kehrer2020-07-271-3/+0
| | | | | | | X509 signing for RSA keys that are too small. Let's just say signing failed and attach the more specific problem as the error stack. A bit uglier, but far more generic and stable to OpenSSL/LibreSSL/BoringSSL Also be a bit more generic for OCSP signing
* simplify more errors (#5353)Paul Kehrer2020-07-261-14/+0
| | | the quest to stop using unstable openssl error codes continues
* start trying to make our error handling a bit more generic (#5352)Paul Kehrer2020-07-261-16/+0
| | | | | | | | | * start trying to make our error handling a bit more generic * remove more and black * attach error stack to memorylimit error * blaaack
* fixes #5113 - Making some SRTP related symbols conditional on ↵omnigrok2020-07-261-0/+10
| | | | | | | | | | | OPENSSL_NO_SRTP (#5338) * fixes #5113 - Making some SRTP related symbols conditional on OPENSSL_NO_SRTP. * don't remove one symbol, test with no-srtp * test against a no-srtp build Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
* remove 4 OCSP bindings we don't use (#5344)Paul Kehrer2020-07-251-4/+0
|
* Refs #5113 -- build against openssl with no ct (#5343)Alex Gaynor2020-07-241-2/+7
|
* fixes #5321 -- deprecate support for OpenSSL 1.0.2 (#5333)Alex Gaynor2020-07-201-0/+1
|
* Delete several unused bindings (#5331)Alex Gaynor2020-07-203-34/+0
|
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-203-25/+39
|
* test FIPS mode on centos8 (#5323)Paul Kehrer2020-07-201-0/+1
| | | | | | | | | | | | | | | * test FIPS mode on centos8 * remove branch we don't take * simpler * better comment * rename * revert some things that don't matter * small cleanups
* disable the osrandom engine on 1.1.1d+ (#5317)Paul Kehrer2020-07-192-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * disable the osrandom engine on 1.1.1d+ * skip (and run) some tests on 1.1.1d+ * simplify our conditionals * Update src/_cffi_src/openssl/src/osrandom_engine.c Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * words * more words * language * get coverage more cleverly * a word * Update .github/workflows/ci.yml Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* support encoding attributes via CertificateSigningRequestBuilder (#5315)Paul Kehrer2020-07-181-2/+2
| | | | | | | * support encoding attributes via CertificateSigningRequestBuilder * use a constant. now you know what 12 means! * pep8
* fix indexing on X509 request attribute value (#5312)Paul Kehrer2020-07-181-0/+1
|
* Avoid passing the wrong size to strncpy - simply use strcpy (#5311)Alex Gaynor2020-07-181-1/+1
| | | We have already validated that `p` is large enough to store `name`. In `strncpy` the `len` parameter should generally be the length of the target buffer, not the source buffer.
* Add support for IBM z/OS (#5304)Steven Pitman2020-07-153-3/+24
|
* remove NPN bindings -- you should be using ALPN! (#4765)Paul Kehrer2020-07-051-19/+1
| | | | | | | | | | | | | | | | | | | | | | * remove NPN bindings -- you should be using ALPN! pyOpenSSL consumed these, but we've marked it as deprecated and it already handles the case where the bindings are not available. * set Cryptography_HAS_NEXTPROTONEG to 0 for pyOpenSSL we can remove this symbol in like...5 years. * remove another NPN related definition * suspicious * Revert "remove another NPN related definition" This reverts commit d872a7d1d776858c77b8c607f63cc9b5fef1ae39. Revert "suspicious" This reverts commit 5b767484f1cde132f686600a46e61a18e33cbdae.
* Remove dead constant time code (#5239)Alex Gaynor2020-04-263-55/+0
|
* Added wycheproof RSA PKCSv1 encryption tests (#5234)Alex Gaynor2020-04-261-0/+1
|
* Dropped support for LibreSSL 2.7, 2.8, and 2.9.0 (2.9.1+ are still ↵Alex Gaynor2020-04-252-22/+0
| | | | supported) (#5231)
* add SSL_CTX_(get|set)_keylog_callback (#5187)Maximilian Hils2020-04-111-0/+18
| | | | | | | * add SSL_CTX_(get|set)_keylog_callback * For travis Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Drop support for OpenSSL 1.0.1 (#5178)Alex Gaynor2020-04-046-177/+13
|
* Add pthread linking on non-win32 (#5086)Alexander Grund2019-12-231-1/+4
| | | | Required to link in static part of pthread, e.g. pthread_atfork Fixes https://github.com/pyca/cryptography/issues/5084