TLS/SSL and crypto library
Find a file
Matt Caswell f2bb79a78a Fix SSL_MODE_RELEASE_BUFFERS functionality
At some point in the past do_ssl3_write() used to return the number of
bytes written, or a value <= 0 on error. It now just returns a success/
error code and writes the number of bytes written to |tmpwrit|.

The SSL_MODE_RELEASE_BUFFERS code was still looking at the return code
for the number of bytes written rather than |tmpwrit|. This has the effect
that the buffers are not released when they are supposed to be.

Fixes 

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9505)

(cherry picked from commit 8bbf63e48f)
2019-08-05 17:17:25 +01:00
.github
apps Fix Typos 2019-07-31 19:48:30 +02:00
boringssl@2070f8ad91
Configurations Fix Typos 2019-07-31 19:48:30 +02:00
crypto Add missing accessors for X509 AuthorityKeyIdentifier 2019-08-01 12:13:37 +02:00
demos Fix Typos 2019-07-31 19:48:30 +02:00
doc Add missing accessors for X509 AuthorityKeyIdentifier 2019-08-01 12:13:37 +02:00
engines Use OPENSSL_strlcpy instead of strncpy in e_afalg.c 2019-07-30 20:38:50 +02:00
external/perl Update copyright year 2018-09-11 13:45:17 +01:00
fuzz Fix GOST OID 2019-05-24 12:36:06 +03:00
include Add missing accessors for X509 AuthorityKeyIdentifier 2019-08-01 12:13:37 +02:00
krb5@b9ad6c4950
ms Update copyright year 2019-02-26 14:05:09 +00:00
os-dep
pyca-cryptography@09403100de Update the pyca-cryptography submodule 2018-09-10 12:04:03 +01:00
ssl Fix SSL_MODE_RELEASE_BUFFERS functionality 2019-08-05 17:17:25 +01:00
test Fix Typos 2019-07-31 19:48:30 +02:00
tools Update copyright year 2018-03-20 13:08:46 +00:00
util Add missing accessors for X509 AuthorityKeyIdentifier 2019-08-01 12:13:37 +02:00
VMS Simplify the handling of shared library version numbers 2017-07-26 22:53:03 +02:00
.gitattributes Don't export the submodules 'boringssl', 'krb5' and 'pyca-cryptography' 2018-11-24 18:43:54 +01:00
.gitignore Add a compile time test to verify that openssl/rsa.h and complex.h can 2018-09-17 09:44:45 +10:00
.gitmodules
.travis-apt-pin.preferences
.travis-create-release.sh Remove all 'make dist' artifacts 2018-11-23 12:42:21 +01:00
.travis.yml Travis: use enable-buildtest-c++ 2019-05-27 19:05:22 +02:00
ACKNOWLEDGEMENTS
appveyor.yml CI config: no need to make both install and install_docs 2018-05-14 17:51:48 +02:00
AUTHORS Update AUTHORS list, add commentary 2018-07-08 20:32:04 -04:00
build.info Configurations/10-main.conf: replace -bexpall with explicit list on AIX. 2018-06-13 10:48:27 +02:00
CHANGES Fix Typos 2019-07-31 19:48:30 +02:00
config iOS build: Replace %20 with space in config script 2019-07-08 10:57:30 +02:00
config.com Update copyright year 2018-02-13 13:59:25 +00:00
Configure Remove last references to DEBUG_SAFESTACK 2019-06-04 07:18:33 +02:00
CONTRIBUTING Remove unnecessary trailing whitespace 2019-02-05 16:29:17 +01:00
e_os.h Revert the DEVRANDOM_WAIT feature 2019-06-09 09:53:39 +02:00
FAQ
INSTALL Add advice on setting CXX at the same time as CC 2019-05-27 19:06:07 +02:00
LICENSE Update copyright year 2019-02-26 14:05:09 +00:00
NEWS Fix Typos 2019-07-01 02:02:06 +08:00
NOTES.ANDROID Remove unnecessary trailing whitespace 2019-02-05 16:29:17 +01:00
NOTES.DJGPP Remove unnecessary trailing whitespace 2019-02-05 16:29:17 +01:00
NOTES.PERL Fix typo in NOTES.PERL 2019-05-16 11:47:53 +10:00
NOTES.UNIX NOTES.UNIX: add "Linking your application" paragraph 2018-06-26 12:28:06 +02:00
NOTES.VMS Remove unnecessary trailing whitespace 2019-02-05 16:29:17 +01:00
NOTES.WIN Fix default installation paths on mingw 2019-07-25 13:08:46 +02:00
README Prepare for 1.1.1d-dev 2019-05-28 15:12:39 +02:00
README.ENGINE
README.FIPS

 OpenSSL 1.1.1d-dev

 Copyright (c) 1998-2019 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 optimization 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'
    - Configuration data: output of 'perl configdata.pm --dump'
    - 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.