TLS/SSL and crypto library
Find a file
Benjamin Kaduk a1673e1536 Avoid negative array index in BIO_debug_callback()
BIO_snprintf() can return -1 on truncation (and overflow as of commit
9cb177301f).  Though neither can
realistically occur while printing a pointer and short fixed string into
a buffer of length 256, the analysis to confirm that this the case goes
somewhat far up the call chain, and not all static analyzers can
successfully follow the chain of logic.

It's easy enough to clamp the returned length to be nonnegative before
continuing, which appeases the static analyzer and does not harm the
subsequent code.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-03-09 20:52:19 -05:00
apps Use minimum and maximum protocol version instead of version fixed methods 2016-03-09 19:38:56 +01:00
Configurations When configured "shared", don't build static libraries on Windows 2016-03-10 02:51:50 +01:00
crypto Avoid negative array index in BIO_debug_callback() 2016-03-09 20:52:19 -05:00
demos Remove really old demo's 2016-03-07 14:56:12 -05:00
doc Add X509_CHECK_FLAG_NEVER_CHECK_SUBJECT flag 2016-03-09 20:41:28 -05:00
engines Don't add engines if configured "no-engine" 2016-03-09 12:51:07 +01:00
external/perl Adjust transfer::Text::Template.pm for alternate directory name 2016-02-12 18:04:49 +01:00
include Add X509_CHECK_FLAG_NEVER_CHECK_SUBJECT flag 2016-03-09 20:41:28 -05:00
ms Unified - adapt the generation of cpuid, uplink and buildinf to use GENERATE 2016-03-09 11:09:26 +01:00
Netware GH601: Various spelling fixes. 2016-02-05 15:25:50 -05:00
os2 Make a number of changes to the OS/2 build. Submitter's comment below. 2003-11-28 14:51:30 +00:00
ssl Deprecate the use of version-specific methods 2016-03-09 19:45:05 +01:00
test Use version flexible method instead of fixed version 2016-03-09 19:39:54 +01:00
tools Rename INSTALL_PREFIX to DESTDIR, remove option --install_prefix 2016-02-12 21:54:07 +01:00
util Make util/mk1mf.pl recognise no-weak-ssl-ciphers 2016-03-10 02:46:42 +01:00
VMS Clean away $config{no_shared} since we have $disabled{shared} 2016-02-22 16:36:58 +01:00
.gitignore Update .gitignore. 2016-02-12 21:49:34 +01:00
.travis-create-release.sh Remove the -n tar flag from osx dist creation 2016-03-08 20:21:26 +01:00
.travis.yml Travis - the source directory is _srcdist, not _srcdir 2016-03-10 01:31:06 +01:00
ACKNOWLEDGEMENTS Refer to website for acknowledgements. 2015-12-08 16:07:09 -05:00
appveyor.yml Adapt appveyor.yml for the new unified build 2016-03-09 11:22:07 +01:00
build.info Unified - name native Windows shared libraries like MingW builds do 2016-03-09 11:22:07 +01:00
CHANGES Update CHANGES and NEWS 2016-03-09 15:31:22 +00:00
config Remove all -march= from configs 2016-02-23 00:47:52 +01:00
config.com Lowercase configuration arguments on VMS 2016-02-16 16:10:06 +01:00
Configure Correct slight logic error in processing IF in build.info 2016-03-09 23:58:44 +01:00
CONTRIBUTING Ask for tests in CONTRIBUTING 2016-01-25 17:12:57 -05:00
e_os.h OpenSSLDie --> OPENSSL_die 2016-03-08 14:46:17 -05:00
FAQ Move FAQ to the web. 2015-08-16 19:02:29 -04:00
INSTALL Adapt INSTALL and related notes for Windows 2016-03-09 11:22:07 +01:00
INSTALL.DJGPP Refactor file writing - information on our use of Perl and Perl modules 2016-01-22 23:12:22 +01:00
INSTALL.NW misspellings fixes by https://github.com/vlajos/misspell_fixer 2013-09-05 21:39:42 +01:00
INSTALL.OS2 Add support for shared libraries with OS/2. 2002-07-17 13:27:43 +00:00
INSTALL.WCE Refactor file writing - information on our use of Perl and Perl modules 2016-01-22 23:12:22 +01:00
LICENSE Update license year range to 2016 2016-01-19 10:24:05 -05:00
Makefile.in Makefile.in: populate [PLIB_]LDFLAG even with $target{} settings. 2016-03-07 15:00:20 +01:00
Makefile.shared FreeBSD, at least, can restrict symbols in a shared library - so use the 2016-02-27 16:23:25 +00:00
NEWS Update CHANGES and NEWS 2016-03-09 15:31:22 +00:00
NOTES.VMS Change the INSTALL documentation for unified builds 2016-03-08 10:48:25 +01:00
NOTES.WIN Adapt INSTALL and related notes for Windows 2016-03-09 11:22:07 +01:00
openssl.spec GH781: openssl.spec: use secure urls 2016-03-03 19:45:13 -05:00
README Prepare for 1.1.0-pre4-dev 2016-02-15 19:37:42 +01:00
README.ECC Add NSA sublicense info. 2011-05-11 12:50:57 +00:00
README.ENGINE Remove Ubsec engine 2016-02-26 23:34:25 +00:00
README.FIPS Remove more (rest?) of FIPS build stuff. 2016-01-06 12:07:26 -05:00
README.PERL State the minimum Perl version that our scripts will work with 2016-02-11 22:11:48 +01:00

 OpenSSL 1.1.0-pre4-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
 Secure Sockets Layer (SSLv3) and Transport Layer Security (TLS) protocols as
 well as a full-strength general purpose cryptographic library. The project is
 managed by a worldwide community of volunteers that use the Internet to
 communicate, plan, and develop the OpenSSL toolkit and its related
 documentation.

 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.a:
     Provides the client and server-side implementations for SSLv3 and TLS.

 libcrypto.a:
     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, etc.
        INSTALL.DJGPP   DOS platform with DJGPP
        INSTALL.NW      Netware
        INSTALL.OS2     OS/2
        INSTALL.VMS     VMS
        INSTALL.WIN     Windows
        INSTALL.WCE     Windows CE

 SUPPORT
 -------

 See the OpenSSL website www.openssl.org for details on how to obtain
 commercial technical support.

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

    - Download the current snapshot from ftp://ftp.openssl.org/snapshot/
      to see if the problem has already been addressed
    - Remove ASM versions of libraries
    - Remove compiler optimisation flags

 If you wish to report a bug then please include the following information in
 any bug report:

    - On Unix systems:
        Self-test report generated by 'make report'
    - On other systems:
        OpenSSL version: output of 'openssl version -a'
        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)

 Email the report to:

    rt@openssl.org

 In order to avoid spam, this is a moderated mailing list, and it might
 take a day for the ticket to show up.  (We also scan posts to make sure
 that security disclosures aren't publically posted by mistake.) Mail
 to this address is recorded in the public RT (request tracker) database
 (see https://www.openssl.org/community/index.html#bugs for details) and
 also forwarded the public openssl-dev mailing list.  Confidential mail
 may be sent to openssl-security@openssl.org (PGP key available from the
 key servers).

 Please do NOT use this for general assistance or support queries.
 Just because something doesn't work the way you expect does not mean it
 is necessarily a bug in OpenSSL.

 You can also make GitHub pull requests. If you do this, please also send
 mail to rt@openssl.org with a link to the PR so that we can more easily
 keep track of it.

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

 See CONTRIBUTING

 LEGALITIES
 ----------

 A number of nations, in particular the U.S., 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.