Boris Pismenny
50ec750567
ssl: Linux TLS Tx Offload
...
This patch adds support for the Linux TLS Tx socket option.
If the socket option is successful, then the data-path of the TCP socket
is implemented by the kernel.
We choose to set this option at the earliest - just after CCS is complete.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253 )
2018-12-07 11:25:45 +00:00
Boris Pismenny
ecd1557fb4
evp/e_aes: Expose IV
...
This commit exposes the cipher's IV to applications.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253 )
2018-12-07 11:25:45 +00:00
Boris Pismenny
6ba76c4f23
bio: Linux TLS Offload
...
Add support for Linux TLS offload in the BIO layer
and specifically in bss_sock.c.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253 )
2018-12-07 11:25:45 +00:00
Boris Pismenny
69495e3df5
Configure Kernel TLS datapath
...
Allow users to disable ktls using the "no-ktls" option.
Also, disable ktls when cross-compiling, non-linux, or too-old-kernel.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253 )
2018-12-07 11:25:45 +00:00
Boris Pismenny
fe3ad3aee3
Linux ktls infrastructure
...
Introduce a compatability layer that exposes the required structures
and constants for supporting ktls.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5253 )
2018-12-07 11:25:45 +00:00
Richard Levitte
a860031621
Make EVP_PKEY_asn1_add0() stricter about its input
...
It turns out that the strictness that was implemented in
EVP_PKEY_asn1_new() (see Github openssl/openssl#6880) was badly placed
for some usages, and that it's better to do this check only when the
method is getting registered.
Fixes #7758
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7847 )
2018-12-07 11:57:04 +01:00
Matt Caswell
95b7926bc3
Only include opensslconf.h once
...
Fixes a pyca cryptography test failure.
[extended tests]
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7839 )
2018-12-07 10:37:41 +00:00
Matt Caswell
5d609f22d2
Remove the cast from the definition of OPENSSL_VERSION_NUMBER
...
If a cast is included in the definition it cannot be used in preprocessor
expressions, e.g. "#if OPENSSL_VERSION_NUMBER > 0x10000000L"
[extended tests]
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7839 )
2018-12-07 10:37:41 +00:00
FdaSilvaYY
56bc3ea0a4
Doc: fix reference to deprecated methods.
...
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7705 )
2018-12-06 20:48:29 +01:00
Dr. Matthias St. Pierre
425dde5d75
curve25519.c: improve formula alignment
...
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7750 )
2018-12-06 19:38:13 +01:00
Dr. Matthias St. Pierre
3a17b9a46e
curve25519.c: reformat code to follow coding guidelines
...
Fixes #7698
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7750 )
2018-12-06 19:38:13 +01:00
Richard Levitte
4ace4ccda2
Remaining boilerplate change in doc/man3/OpenSSL_version.pod
...
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7838 )
2018-12-06 15:58:55 +01:00
Richard Levitte
48f4ad7718
Following the license change, modify the boilerplates in include/ and crypto/include/
...
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7770 )
2018-12-06 15:57:31 +01:00
Richard Levitte
402dd5585e
Following the license change, modify the boilerplates in last few
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7836 )
2018-12-06 15:40:33 +01:00
Richard Levitte
4569ff3257
Following the license change, modify the boilerplates in external/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7835 )
2018-12-06 15:39:02 +01:00
Richard Levitte
5e73e6baac
Following the license change, modify the boilerplates in demos/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7834 )
2018-12-06 15:38:19 +01:00
Richard Levitte
0642931f30
Following the license change, modify the boilerplates in fuzz/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7833 )
2018-12-06 15:37:38 +01:00
Richard Levitte
ab3fa1c0ad
Following the license change, modify the boilerplates in engines/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7832 )
2018-12-06 15:36:54 +01:00
Richard Levitte
3187791ed3
Following the license change, modify the boilerplates in doc/man7/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7831 )
2018-12-06 15:36:02 +01:00
Richard Levitte
b1e979aeec
Following the license change, modify the boilerplates in doc/man5/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7830 )
2018-12-06 15:35:20 +01:00
Richard Levitte
4746f25ac6
Following the license change, modify the boilerplates in doc/man3/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7829 )
2018-12-06 15:34:13 +01:00
Richard Levitte
449040b49a
Following the license change, modify the boilerplates in doc/man1/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7828 )
2018-12-06 15:33:06 +01:00
Richard Levitte
0e9725bcb9
Following the license change, modify the boilerplates in crypto/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7827 )
2018-12-06 15:32:17 +01:00
Richard Levitte
55e0593c81
Following the license change, modify the boilerplates in crypto/ui/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7826 )
2018-12-06 15:31:37 +01:00
Richard Levitte
4286ca47c7
Following the license change, modify the boilerplates in crypto/x509v3/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7825 )
2018-12-06 15:30:52 +01:00
Richard Levitte
3e4b43b9e5
Following the license change, modify the boilerplates in crypto/x509/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7824 )
2018-12-06 15:30:09 +01:00
Richard Levitte
677c7ab9ea
Following the license change, modify the boilerplates in crypto/whrlpool/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7823 )
2018-12-06 15:29:22 +01:00
Richard Levitte
a1b4409db2
Following the license change, modify the boilerplates in crypto/ts/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7822 )
2018-12-06 15:28:35 +01:00
Richard Levitte
5c0d0c86af
Following the license change, modify the boilerplates in crypto/store/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7821 )
2018-12-06 15:27:43 +01:00
Richard Levitte
4fc56f9022
Following the license change, modify the boilerplates in crypto/stack/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7820 )
2018-12-06 15:26:59 +01:00
Richard Levitte
7428b99b2d
Following the license change, modify the boilerplates in crypto/srp/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7819 )
2018-12-06 15:25:51 +01:00
Richard Levitte
f9f859adc6
Following the license change, modify the boilerplates in crypto/smN/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7818 )
2018-12-06 15:24:52 +01:00
Richard Levitte
134148276b
Following the license change, modify the boilerplates in crypto/siphash/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7817 )
2018-12-06 15:24:02 +01:00
Richard Levitte
a598ed0dc4
Following the license change, modify the boilerplates in crypto/sha/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7816 )
2018-12-06 15:23:03 +01:00
Richard Levitte
39c44eee7f
Following the license change, modify the boilerplates in crypto/seed/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7815 )
2018-12-06 15:22:15 +01:00
Richard Levitte
2a7b6f3908
Following the license change, modify the boilerplates in crypto/rsa/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7814 )
2018-12-06 15:20:59 +01:00
Richard Levitte
57946a26b6
Following the license change, modify the boilerplates in crypto/ripemd/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7813 )
2018-12-06 15:15:42 +01:00
Richard Levitte
5e4435a760
Following the license change, modify the boilerplates in crypto/rcN/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7812 )
2018-12-06 15:14:57 +01:00
Richard Levitte
0db63de94c
Following the license change, modify the boilerplates in crypto/rand/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7811 )
2018-12-06 15:14:05 +01:00
Richard Levitte
49d3b6416b
Following the license change, modify the boilerplates in crypto/poly1305/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7810 )
2018-12-06 15:13:16 +01:00
Richard Levitte
b7617a3a99
Following the license change, modify the boilerplates in crypto/pkcs7/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7809 )
2018-12-06 15:12:24 +01:00
Richard Levitte
54fffdf47c
Following the license change, modify the boilerplates in crypto/pkcs12/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7808 )
2018-12-06 15:11:42 +01:00
Richard Levitte
a5d9549d6e
Following the license change, modify the boilerplates in crypto/perlasm/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7807 )
2018-12-06 15:10:05 +01:00
Richard Levitte
16742672a0
Following the license change, modify the boilerplates in crypto/pem/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7806 )
2018-12-06 15:09:09 +01:00
Richard Levitte
0c49670063
Following the license change, modify the boilerplates in crypto/ocsp/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7805 )
2018-12-06 15:08:20 +01:00
Richard Levitte
3f870de74e
Following the license change, modify the boilerplates in crypto/objects/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7804 )
2018-12-06 15:07:30 +01:00
Richard Levitte
81cae8ce09
Following the license change, modify the boilerplates in crypto/modes/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7803 )
2018-12-06 15:06:37 +01:00
Richard Levitte
2bcb0fc862
Following the license change, modify the boilerplates in crypto/mdc2/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7802 )
2018-12-06 15:04:57 +01:00
Richard Levitte
4911f55362
Following the license change, modify the boilerplates in crypto/mdN/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7801 )
2018-12-06 15:04:11 +01:00
Richard Levitte
8573be06a9
Following the license change, modify the boilerplates in crypto/lhash/
...
[skip ci]
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7800 )
2018-12-06 15:02:41 +01:00