summaryrefslogtreecommitdiff
path: root/src/lib/libssl/bio_ssl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix two aliases in libcrypto spotted by the new symbols testtb2023-07-191-2/+2
| | | | ok jsing
* Hide all public symbols in libsslbeck2023-07-081-1/+5
| | | | | | With the guentherizer 9000 ok tb@
* libressl *_namespace.h: adjust *_ALIAS() to require a semicolontb2023-02-161-4/+4
| | | | | | | | | | LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h fix suggested by & ok jsing
* Make internal header file names consistenttb2022-11-261-2/+2
| | | | | | | | | | | | | | | | Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook
* Add support for symbol hiding disabled by default.beck2022-11-111-1/+4
| | | | | | | | | | | | Fully explained in libcrypto/README. TL;DR make sure libcrypto and libssl's function calls internally and to each other are via symbol names that won't get overridden by linking other libraries. Mostly work by guenther@, which will currently be gated behind a build setting NAMESPACE=yes. once we convert all the symbols to this method we will do a major bump and pick up the changes. ok tb@ jsing@
* unwrap two lines for readabilitytb2022-10-051-5/+3
|
* Get rid of SSL_CTX_INTERNAL and SSL_INTERNAL.jsing2022-10-021-3/+3
| | | | | | | | These are no longer necessary due to SSL_CTX and SSL now being fully opaque. Merge SSL_CTX_INTERNAL back into SSL_CTX and SSL_INTERNAL back into SSL. Prompted by tb@
* Use the correct type for ssl_callback_ctrl()tb2022-01-141-3/+3
|
* bio_ssl.c needs to peek into bio_local.htb2022-01-141-1/+2
|
* Merge SSL_METHOD_INTERNAL into SSL_METHOD.jsing2021-07-011-3/+3
| | | | | | | Now that SSL_METHOD is opaque and in internal headers, we can remove SSL_METHOD_INTERNAL by merging it back into SSL_METHOD. ok tb@
* Indent all labels with a single space.jsing2021-06-111-4/+4
| | | | | | This ensures that diff reports the correct function prototype. Prompted by tb@
* Let SSL_copy_session_id() return an int for error checking.tb2018-08-241-2/+4
| | | | | | | | | | Accordingly, add some error checking to SSL_copy_session_id(), BIO_ssl_copy_session_id(), and SSL_dup(). Prompted by OpenSSL commit 17dd65e6e1f Tested in a bulk build by sthen ok jsing
* const for BIO_f_ssl(), the last const difference to OpenSSL in ourtb2018-05-011-3/+3
| | | | | | public API in libssl. ok beck, jsing
* Change SSLerror() back to taking two args, with the first one being an SSL *.beck2017-02-071-2/+2
| | | | | | | | | Make a table of "function codes" which maps the internal state of the SSL * to something like a useful name so in a typical error in the connection you know in what sort of place in the handshake things happened. (instead of by arcane function name). Add SSLerrorx() for when we don't have an SSL * ok jsing@ after us both being prodded by bluhm@ to make it not terrible
* Send the function codes from the error functions to the bit bucket,beck2017-01-291-2/+2
| | | | | | as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
* knfbeck2017-01-261-6/+11
|
* Split most of SSL_METHOD out into an internal variant, which is opaque.jsing2017-01-231-3/+3
| | | | Discussed with beck@
* move the callbacks from ssl_st to internalbeck2017-01-231-3/+5
| | | | ok jsing@
* convert "last_time" to a time_t, to handle beyond Y2038deraadt2015-09-291-7/+7
| | | | ok guenther miod
* Sort and group includes.jsing2014-11-161-3/+4
|
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* Clean up BIO_free() handling in bio_ssl.c - BIO_free() has its own NULLjsing2014-06-081-13/+16
| | | | | | | | check, so do not duplicate it here. Make the error handling consistent by always using 'goto err' rather than returning in certain cases. Also add a missing BIO_free(ssl) in BIO_new_ssl_connect(). ok deraadt@
* remove some #if 0 code. we don't need any more reminders that we're usingtedu2014-05-301-17/+0
| | | | a not quite appropriate data structure. ok jsing
* There is no point in checking if a pointer is non-NULL before calling free,jsing2014-05-281-2/+1
| | | | | | | | since free already does this for us. Also remove some pointless NULL assignments, where the result from malloc(3) is immediately assigned to the same variable. ok miod@
* Use C99 initialisers for BIO_METHOD.jsing2014-05-261-9/+9
|
* Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.jsing2014-05-021-4/+0
| | | | ok beck@
* more malloc/realloc/calloc cleanups; ok beck kettenisderaadt2014-04-211-2/+1
|
* More KNF.jsing2014-04-191-20/+20
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-2/+2
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* First pass at applying KNF to the OpenSSL code, which almost makes itjsing2014-04-141-275/+270
| | | | | readable. This pass is whitespace only and can readily be verified using tr and md5.
* resolve conflictsdjm2012-10-131-0/+2
|
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-0/+4
|
* resolve conflicts, fix local changesdjm2010-10-011-10/+11
|
* resolve conflictsdjm2008-09-061-3/+3
|
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-0/+6
|
* OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-151-1/+7
|
* openssl-engine-0.9.6 mergebeck2000-12-151-11/+11
|
* OpenSSL 0.9.5 mergebeck2000-03-191-1/+32
| | | | | | *warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
* OpenSSL 0.9.4 mergebeck1999-09-291-46/+16
|
* Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1998-10-051-0/+585
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.