Go to file
Benjamin Kaduk 5626f634c3 Move ALPN handling from finalizer to delayed call
Commit 02f0274e8c moved ALPN processing
into an extension finalization function, as the only documented ordering
requirement from previous commits was that ALPN processing occur after
SNI processing, and SNI processing is performed before the extension
finalization step.  However, it is useful for applications'
alpn_select callbacks to run after ciphersuite selection as well -- at
least one application protocol specification (HTTP/2) imposes restrictions
on which ciphersuites are usable with that protocol.  Since it is generally
more preferrable to have a successful TLS connection with a default application
protocol than to fail the TLS connection and not be able to have the preferred
application protocol, it is good to give the alpn_select callback information
about the ciphersuite to be used, so that appropriate restrctions can be
enforced in application code.

Accordingly, split the ALPN handling out into a separate tls_handl_alpn()
function akin to tls_handle_status_request(), called from
tls_post_process_client_hello().  This is an alternative to resuscitating
ssl_check_clienthello_tlsext_late(), something of an awkwward name itself.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4070)
2017-08-15 10:52:21 -05:00
.github
apps Revert "Add some casts for %j" 2017-08-15 09:42:38 -04:00
boringssl@2070f8ad91
Configurations Simplify the handling of shared library version numbers 2017-07-26 22:53:03 +02:00
crypto Revert "Add some casts for %j" 2017-08-15 09:42:38 -04:00
demos Demo style fixes and modernisation. 2017-07-13 07:34:40 +10:00
doc Doc fixes 2017-08-14 09:32:07 -04:00
engines Add predicatable RAND_METHOD to test ENGINE 2017-08-06 19:24:32 +01:00
external/perl
fuzz Move FuzzerSetRand to separate file. 2017-08-11 08:23:07 -04:00
include Add ERR_clear_last_mark() 2017-08-15 14:26:12 +02:00
krb5@b9ad6c4950
ms
os-dep
pyca-cryptography@c1f8e46033 Update pyca-cryptography to latest commit 2017-08-11 11:16:44 +10:00
ssl Move ALPN handling from finalizer to delayed call 2017-08-15 10:52:21 -05:00
test Revert "Add some casts for %j" 2017-08-15 09:42:38 -04:00
tools
util Add ERR_clear_last_mark() 2017-08-15 14:26:12 +02:00
VMS Simplify the handling of shared library version numbers 2017-07-26 22:53:03 +02:00
.gitattributes
.gitignore Add apps/progs.h to gitignore 2017-06-15 16:56:56 -04:00
.gitmodules
.travis-apt-pin.preferences Fix travis clang-3.9 builds 2017-06-23 17:57:02 +01:00
.travis-create-release.sh
.travis.yml Add echo for end of each build phase 2017-07-04 16:23:59 -04:00
ACKNOWLEDGEMENTS
appveyor.yml Remove notification settings from appveyor.yml 2017-05-17 12:36:28 +02:00
AUTHORS
build.info Simplify the handling of shared library version numbers 2017-07-26 22:53:03 +02:00
CHANGES Add ERR_clear_last_mark() 2017-08-15 14:26:12 +02:00
config
config.com
Configure File::Glob option ':bsd_glob' doesn't work everywhere, replace w/ a wrapper 2017-08-15 11:31:18 +02:00
CONTRIBUTING
e_os.h Move ossl_assert 2017-08-03 10:48:00 +01:00
FAQ
INSTALL drop some no-longer-relevant TODO(TLS1.3) entries 2017-06-12 09:19:05 +01:00
LICENSE
Makefile.shared Makefile.shared: Make link_shlib.linux-shared less verbose again 2017-07-24 11:57:44 +02:00
NEWS STORE: Add an entry in NEWS and CHANGES 2017-06-29 11:55:33 +02:00
NOTES.DJGPP
NOTES.PERL
NOTES.UNIX
NOTES.VMS
NOTES.WIN Various doc fixes. 2017-07-26 23:09:40 -04:00
README
README.ECC
README.ENGINE Remove bsd_cryptodev engine 2017-06-19 09:31:45 -04:00
README.FIPS

 OpenSSL 1.1.1-dev

 Copyright (c) 1998-2016 The OpenSSL Project
 Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
 All rights reserved.

 DESCRIPTION
 -----------

 The OpenSSL Project is a collaborative effort to develop a robust,
 commercial-grade, fully featured, and Open Source toolkit implementing the
 Transport Layer Security (TLS) protocols (including SSLv3) as well as a
 full-strength general purpose cryptographic library.

 OpenSSL is descended from the SSLeay library developed by Eric A. Young
 and Tim J. Hudson.  The OpenSSL toolkit is licensed under a dual-license (the
 OpenSSL license plus the SSLeay license), which means that you are free to
 get and use it for commercial and non-commercial purposes as long as you
 fulfill the conditions of both licenses.

 OVERVIEW
 --------

 The OpenSSL toolkit includes:

 libssl (with platform specific naming):
     Provides the client and server-side implementations for SSLv3 and TLS.

 libcrypto (with platform specific naming):
     Provides general cryptographic and X.509 support needed by SSL/TLS but
     not logically part of it.

 openssl:
     A command line tool that can be used for:
        Creation of key parameters
        Creation of X.509 certificates, CSRs and CRLs
        Calculation of message digests
        Encryption and decryption
        SSL/TLS client and server tests
        Handling of S/MIME signed or encrypted mail
        And more...

 INSTALLATION
 ------------

 See the appropriate file:
        INSTALL         Linux, Unix, Windows, OpenVMS, ...
        NOTES.*         INSTALL addendums for different platforms

 SUPPORT
 -------

 See the OpenSSL website www.openssl.org for details on how to obtain
 commercial technical support. Free community support is available through the
 openssl-users email list (see
 https://www.openssl.org/community/mailinglists.html for further details).

 If you have any problems with OpenSSL then please take the following steps
 first:

    - Download the latest version from the repository
      to see if the problem has already been addressed
    - Configure with no-asm
    - Remove compiler optimisation flags

 If you wish to report a bug then please include the following information
 and create an issue on GitHub:

    - OpenSSL version: output of 'openssl version -a'
    - Any "Configure" options that you selected during compilation of the
      library if applicable (see INSTALL)
    - OS Name, Version, Hardware platform
    - Compiler Details (name, version)
    - Application Details (name, version)
    - Problem Description (steps that will reproduce the problem, if known)
    - Stack Traceback (if the application dumps core)

 Just because something doesn't work the way you expect does not mean it
 is necessarily a bug in OpenSSL. Use the openssl-users email list for this type
 of query.

 HOW TO CONTRIBUTE TO OpenSSL
 ----------------------------

 See CONTRIBUTING

 LEGALITIES
 ----------

 A number of nations restrict the use or export of cryptography. If you
 are potentially subject to such restrictions you should seek competent
 professional legal advice before attempting to develop or distribute
 cryptographic code.