boringssl/ssl
David Benjamin 81f030b106 Switch OPENSSL_VERSION_NUMBER to 1.1.0.
Although we are derived from 1.0.2, we mimic 1.1.0 in some ways around
our FOO_up_ref functions and opaque libssl types. This causes some
difficulties when porting third-party code as any OPENSSL_VERSION_NUMBER
checks for 1.1.0 APIs we have will be wrong.

Moreover, adding accessors without changing OPENSSL_VERSION_NUMBER can
break external projects. It is common to implement a compatibility
version of an accessor under #ifdef as a static function. This then
conflicts with our headers if we, unlike OpenSSL 1.0.2, have this
function.

This change switches OPENSSL_VERSION_NUMBER to 1.1.0 and atomically adds
enough accessors for software with 1.1.0 support already. The hope is
this will unblock hiding SSL_CTX and SSL_SESSION, which will be
especially useful with C++-ficiation. The cost is we will hit some
growing pains as more 1.1.0 consumers enter the ecosystem and we
converge on the right set of APIs to import from upstream.

It does not remove any 1.0.2 APIs, so we will not require that all
projects support 1.1.0. The exception is APIs which changed in 1.1.0 but
did not change the function signature. Those are breaking changes.
Specifically:

- SSL_CTX_sess_set_get_cb is now const-correct.

- X509_get0_signature is now const-correct.

For C++ consumers only, this change temporarily includes an overload
hack for SSL_CTX_sess_set_get_cb that keeps the old callback working.
This is a workaround for Node not yet supporting OpenSSL 1.1.0.

The version number is set at (the as yet unreleased) 1.1.0g to denote
that this change includes https://github.com/openssl/openssl/pull/4384.

Bug: 91
Change-Id: I5eeb27448a6db4c25c244afac37f9604d9608a76
Reviewed-on: https://boringssl-review.googlesource.com/10340
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
2017-09-29 04:51:27 +00:00
..
test Switch OPENSSL_VERSION_NUMBER to 1.1.0. 2017-09-29 04:51:27 +00:00
bio_ssl.cc
CMakeLists.txt Migrate TLS 1.2 and below state machines to the new style. 2017-08-29 19:23:22 +00:00
custom_extensions.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
d1_both.cc Switch more things to Array. 2017-09-27 18:29:43 +00:00
d1_lib.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
d1_pkt.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
d1_srtp.cc Clear a goto in d1_srtp.cc. 2017-09-22 15:15:48 +00:00
dtls_method.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
dtls_record.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
handshake_client.cc Inline ssl_clear_tls13_state. 2017-09-27 18:32:34 +00:00
handshake_server.cc Switch more things to Array. 2017-09-27 18:29:43 +00:00
handshake.cc Store the peer_sigalgs as an Array. 2017-09-27 18:30:13 +00:00
internal.h Inline ssl_clear_tls13_state. 2017-09-27 18:32:34 +00:00
s3_both.cc Switch more things to Array. 2017-09-27 18:29:43 +00:00
s3_lib.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
s3_pkt.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
span_test.cc Add bssl::SealRecord and bssl::OpenRecord. 2017-07-24 20:14:08 +00:00
ssl_aead_ctx.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
ssl_asn1.cc Make SNI per-connection, not per-session. 2017-09-06 20:25:26 +00:00
ssl_buffer.cc Zero memory in |OPENSSL_free|. 2017-09-06 19:22:46 +00:00
ssl_cert.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
ssl_cipher.cc Add SSL_CIPHER_get_prf_nid. 2017-09-21 21:44:15 +00:00
ssl_file.cc Switch OPENSSL_VERSION_NUMBER to 1.1.0. 2017-09-29 04:51:27 +00:00
ssl_key_share.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
ssl_lib.cc Switch OPENSSL_VERSION_NUMBER to 1.1.0. 2017-09-29 04:51:27 +00:00
ssl_privkey.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
ssl_session.cc Switch OPENSSL_VERSION_NUMBER to 1.1.0. 2017-09-29 04:51:27 +00:00
ssl_stat.cc Migrate TLS 1.2 and below state machines to the new style. 2017-08-29 19:23:22 +00:00
ssl_test.cc Convert ClientHello tests to GTest. 2017-09-28 19:28:47 +00:00
ssl_transcript.cc Remove unnecessary parameter. 2017-08-31 14:18:26 +00:00
ssl_versions.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
ssl_x509.cc Have fun with lock scopers. 2017-09-28 17:49:37 +00:00
t1_enc.cc Simplify tls1_change_cipher_spec. 2017-09-22 15:18:17 +00:00
t1_lib.cc Store the peer_sigalgs as an Array. 2017-09-27 18:30:13 +00:00
tls13_both.cc More miscellaneous bools. 2017-09-01 15:07:52 +00:00
tls13_client.cc Inline ssl_clear_tls13_state. 2017-09-27 18:32:34 +00:00
tls13_enc.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00
tls13_server.cc Introduce bssl::Array<T> and use it in SSLKeyShare. 2017-09-27 17:29:23 +00:00
tls_method.cc Convert comments in ssl. 2017-08-29 21:33:32 +00:00
tls_record.cc Add experiment without client CCS and fix session ID bug. 2017-09-12 18:05:50 +00:00