aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add build.info lines for dtlsv1listentestRichard Levitte2016-02-061-2/+7
| | | | Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Don't include sys/socket.hKurt Roeckx2016-02-061-1/+0
| | | | | | | | It's not available on all OSs, e_os.h already does the right thing Reviewed-by: Richard Levitte <levitte@openssl.org> MR: #1870
* Add missing static declarations in dtlsv1listentest.cViktor Dukhovni2016-02-051-11/+11
| | | | | | | | | Clang rightly does not like extern symbols that are not declared in any header file, as typically these are not intended for global visibility and are exposed in error. This was indeed the case with various file-scope objects in dtlsv1listentest.c. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Update DTLSv1_listen documentationMatt Caswell2016-02-051-3/+5
| | | | | | | Make it clear that if we are unable to get hold of the peer address then *peer is cleared and the family set to AF_UNSPEC. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add tests for DTLSv1_listenMatt Caswell2016-02-054-13/+504
| | | | | | | | | Adds a set of tests for the newly rewritten DTLSv1_listen function. The test pokes various packets at the function and then checks the return value and the data written out to ensure it is what we would have expected. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Provide partial support for fragmented DTLS ClientHellosMatt Caswell2016-02-051-6/+20
| | | | | | | | | | | The recently rewriten DTLSv1_listen code does not support fragmented ClientHello messages because fragment reassembly requires server state which is against the whole point of DTLSv1_listen. This change adds some partial support for fragmented ClientHellos. It requires that the cookie must be within the initial fragment. That way any non-initial ClientHello fragments can be dropped and fragment reassembly is not required. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add a BIO_ADDR_clear functionMatt Caswell2016-02-053-2/+15
| | | | | | | Adds a new function BIO_ADDR_clear to reset a BIO_ADDR back to an unitialised state, and to set the family to AF_UNSPEC. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* GH601: Various spelling fixes.FdaSilvaYY2016-02-0596-147/+147
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* RT4070: Improve struct/union regexpEllinger, Wesley M2016-02-051-1/+1
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* Make DTLSv1_listen a first class function and change its typeMatt Caswell2016-02-057-43/+39
| | | | | | | | | The DTLSv1_listen function exposed details of the underlying BIO abstraction and did not properly allow for IPv6. This commit changes the "peer" argument to be a BIO_ADDR and makes it a first class function (rather than a ctrl) to ensure proper type checking. Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT4292: Remove ===== lineRich Salz2016-02-053-1019/+0
| | | | | | Also remove two mistakenly checked-in files. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* RT1596: Add clarifying doc.Rich Salz2016-02-051-1/+2
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* GH628: Add -help to all apps docs.A J Mohan Rao2016-02-0540-15/+1218
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* GH628: Add -help to all apps docs.Rich Salz2016-02-053-0/+15
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Ensure correct chain depth for policy checks with DANE bare key TAViktor Dukhovni2016-02-051-0/+19
| | | | Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* Long overdue cleanup of X509 policy tree verificationViktor Dukhovni2016-02-054-255/+244
| | | | | | | | | Replace all magic numbers with #defined constants except in boolean functions that return 0 for failure and 1 for success. Avoid a couple memory leaks in error recovery code paths. Code style improvements. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* Various RT doc fixesRich Salz2016-02-056-205/+144
| | | | | | | | | | | | | | | | RT1556: doc/crypto/threads.pod RT2024: Missing pages mentioned in crypto.pod RT2890: Wrong size in ERR_string_error description. RT3461: Better description of PEM Encryption (Jeffrey Walton <noloader@gmail.com>) Also, fix up formatting and removed some code examples that encourage unsafe patterns, like unencrypted private keys (Rich Salz) RT4240: Document some speed flags (Tomas Mraz <tmraz@redhat.com>) RT4260: Fix return value doc for X509_REQ_sign and X509_sign (Laetitia Baudoin <lbaudoin@google.com>) Reviewed-by: Emilia Käsper <emilia@openssl.org>
* enable leak checking for danetestDr. Stephen Henson2016-02-051-0/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix return code in CRYPTO_mem_leaks_fp()Dr. Stephen Henson2016-02-051-2/+2
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* If memory debugging enabled return error on leaks.Dr. Stephen Henson2016-02-0517-17/+34
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Restore -no_comp switch for backwards compatible behaviourViktor Dukhovni2016-02-056-5/+48
| | | | Reviewed-by: Emilia Käsper <emilia@openssl.org>
* VMS lacks socklen_t, give it oneRichard Levitte2016-02-051-0/+4
| | | | | | Fortunately, we only use socklen_t internally Reviewed-by: Rich Salz <rsalz@openssl.org>
* Initialize variableRichard Levitte2016-02-051-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Don't export local symbols on SolarisMatt Caswell2016-02-051-2/+7
| | | | | | | | Following on from earlier commits to prevent local symbols from being exported in the shared libraries on Linux, this makes the equivalent changes for Solaris. Reviewed-by: Richard Levitte <levitte@openssl.org>
* make updateDr. Stephen Henson2016-02-051-0/+4
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add EC_KEY_priv2buf()Dr. Stephen Henson2016-02-054-84/+56
| | | | | | | Add new function EC_KEY_priv2buf() to allocated and encode private key octet in one call. Update and simplify ASN.1 and print routines. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Allocate ASN1_bn_print buffer internally.Dr. Stephen Henson2016-02-051-18/+28
| | | | | | | | Don't require an application to work out the appropriate buffer size for ASN1_bn_print(), which is unsafe. Ignore the supplied buffer and allocate it internally instead. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Use BN_bn2binpadDr. Stephen Henson2016-02-051-12/+2
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* use enum type for do_EC_KEY_printDr. Stephen Henson2016-02-051-8/+14
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* update EC ASN1 and print routinesDr. Stephen Henson2016-02-055-62/+70
| | | | | | | Update EC ASN.1 and print routines to use EC_KEY_oct2priv and EC_KEY_priv2oct. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add EC_KEY_oct2priv and EC_KEY_priv2octDr. Stephen Henson2016-02-052-0/+73
| | | | | | | | New functions EC_KEY_oct2priv and EC_KEY_priv2oct. These are private key equivalents of EC_POINT_oct2point and EC_POINT_point2oct which convert between the private key octet format and EC_KEY. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add ASN1_buf_print to print a buffer in ASN1_bn_print format.Dr. Stephen Henson2016-02-052-17/+38
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Don't use RDRAND if told not toMatt Caswell2016-02-041-1/+2
| | | | | | Ensure we respect OPENSSL_NO_RDRAND Reviewed-by: Rich Salz <rsalz@openssl.org>
* Initialise with -1 rather than 1Richard Levitte2016-02-051-1/+1
| | | | | | A small typo crept in. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Add new DTLS-SRTP protection profiles from RFC 7714Dmitry Sobinov2016-02-042-0/+12
| | | | | Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Add checks for IPv4 and IPv6 in OpenSSL::Test::Utils and use themRichard Levitte2016-02-042-7/+91
| | | | | | | | | | | | | This uilds on the same way of checking for availability as we do in TLSProxy. We use all IP factories we know of, starting with those who know both IPv6 and IPv4 and ending with the one that only knows IPv4 and cache their possible success as foundation for checking the available of each IP domain. 80-test_ssl.t has bigger chances of working on platforms that do not run both IP domains. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Update crypto/bio/build.infoRichard Levitte2016-02-041-2/+2
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix pkeyutl inability to directly access keys on hardware tokensMouse2016-02-041-5/+18
| | | | | Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Change the transfer perl module so the real module gets properly registeredRichard Levitte2016-02-041-3/+4
| | | | | | | This is an important move if scripts want to refer to the loaded module without having perl think it needs to be loaded (again). Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add option to disable asyncTodd Short2016-02-044-3/+7
| | | | | | | | | | | | Add no-async option to Configure that forces ASYNC_NULL. Related to RT1979 An embedded system or replacement C library (e.g. musl or uClibc) may not support the *context APIs that are needed for async operation. Compiles with musl. Ran unit tests, async tests skipped as expected. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Make sure getaddrinfo and getnameinfo works as intended on WindowsRichard Levitte2016-02-041-2/+9
| | | | | | | | | Both getaddrinfo() and getnameinfo() have to be preceeded with a call to BIO_sock_init(). Also, make sure to give gai_strerror() the actual error code. Reviewed-by: Stephen Henson <steve@openssl.org>
* If egd is disabled by default, it should be possible to enableRichard Levitte2016-02-041-0/+1
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* Add ec -check optionDr. Stephen Henson2016-02-042-2/+20
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* Fix potential buffer overrunDmitry-Me2016-02-041-1/+1
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Use WSAGetLastError() on windowsKurt Roeckx2016-02-043-0/+10
| | | | | | | | Windows doesn't have h_error or hstrerror() Reviewed-by: Richard Levitte <levitte@openssl.org> MR: #1848
* Restore xmm7 from the correct address on win64Kurt Roeckx2016-02-041-1/+1
| | | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> RT: #4288, MR: #1831
* update OID tablesDr. Stephen Henson2016-02-043-5/+45
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Add Curve OIDs from draft-josefsson-pkix-newcurvesDr. Stephen Henson2016-02-041-0/+7
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* RT2887: Add more packet and handshake typesDaniel Black2016-02-041-0/+7
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Fix BN_gcd errors for some curvesBilly Brumley2016-02-041-2/+7
| | | | | | | Those even order that do not play nicely with Montgomery arithmetic Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org>