History of generic/tlsBIO.c of 1ef3d3faef3bb790

History of file generic/tlsBIO.c at check-in 1ef3d3faef3bb790

2024-11-29
15:41
Re-introduce TCL_UNUSED. Some int <-> Tcl_Size fixes. Some more code cleanup file: [82977b2388] check-in: [cc9314fa6e] user: jan.nijtmans, branch: main, size: 17203 [annotate] [blame] [check-ins using] [diff]
2024-11-01
01:09
Comment updates file: [461b7f06d1] check-in: [b52b3ab189] user: bohagan, branch: tls-1.8, size: 17229 [annotate] [blame] [check-ins using] [diff]
2024-10-26
16:38
Removed obsolete RCS version strings. Added file header info. file: [f962f31c62] check-in: [fbdf0eae0a] user: bohagan, branch: tls-1.8, size: 17228 [annotate] [blame] [check-ins using] [diff]
16:08
Removed extra padding, convert spaces to tabs, etc. file: [8197456eb7] check-in: [1ef3d3faef] user: bohagan, branch: tls-1.8, size: 17224 [annotate] [blame] [check-ins using] [diff]
2024-07-06
04:17
Made updates to enhance event processing, I/O operations, etc. to address reports of stalled connections, etc. file: [04379767a8] check-in: [e3d4330c95] user: bohagan, branch: tls-1.8, size: 17229 [annotate] [blame] [check-ins using] [diff]
2024-06-29
02:46
Added comments and function preamble comments to BIO and IO files. file: [8f12569dd2] check-in: [9e79f40ed5] user: bohagan, branch: tls-1.8, size: 12324 [annotate] [blame] [check-ins using] [diff]
2024-03-05
14:37
Formatting (taken over from bohagan) file: [b20b460cd0] check-in: [2568fd9c5d] user: jan.nijtmans, branch: bohagan, size: 9608 [annotate] [blame] [check-ins using] [diff]
2024-02-24
03:02
Clean up return statements file: [13299d5667] check-in: [a9e4d32d68] user: bohagan, branch: trunk, size: 8399 [annotate] [blame] [check-ins using] [diff]
02:45
Clean up warnings on *nix builds file: [e9c830967f] check-in: [9d22adae76] user: bohagan, branch: trunk, size: 8409 [annotate] [blame] [check-ins using] [diff]
2024-02-22
17:51
Forward declaration no longer necessary file: [26205b6a4d] check-in: [93c001e9c4] user: jan.nijtmans, branch: nijtmans, size: 9579 [annotate] [blame] [check-ins using] [diff]
17:40
Fix [006bd0c74e]: PATCH: BIO_CTRL_PUSH not handled. Also add some changes from androwish: [https://www.androwish.org/home/info/982ebf9d31a60440] file: [dd9500370d] check-in: [1b8c76f783] user: jan.nijtmans, branch: nijtmans, size: 9899 [annotate] [blame] [check-ins using] [diff]
15:27
Merge trunk file: [e2553f33f8] check-in: [c61ea12657] user: jan.nijtmans, branch: bohagan, size: 8398 [annotate] [blame] [check-ins using] [diff]
13:49
A lot of formatting, no change in functionality. file: [1f5961558a] check-in: [46ffe75283] user: jan.nijtmans, branch: nijtmans, size: 9309 [annotate] [blame] [check-ins using] [diff]
07:56
Applied patch to add OpenSSL3 KTLS trivial processing. Description: Patch adds trivial processing for BIO_CTRL_GET_KTLS_SEND and BIO_CTRL_GET_KTLS_RECV control commands to make tcltls working with OpenSSL 3.0. See also: - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006587 - https://bugzilla.redhat.com/show_bug.cgi?id=2088363 Source: https://sources.debian.org/src/tcltls/1.7.22-3/debian/patches/openssl3.patch file: [e3ba26fe5d] check-in: [0f781794ab] user: jan.nijtmans, branch: nijtmans, size: 9102 [annotate] [blame] [check-ins using] [diff]
07:52
TlsIO.test Hostname Fix. Patch by Sergei Golovan (Debian) to make the client socket connect to localhost instead of [info hostname] to prevent intermittent test failures inside mock(1). Also, account for a change in error message "unsupported protocol" instead of "wrong version number". -- Sergei Golovan <email address hidden> Thu, 18 Jul 2019 15:00:18 +0300 Source: https://sources.debian.org/src/tcltls/1.7.22-3/debian/patches/hostname-tests.patch file: [e29f3b54d6] check-in: [913359443b] user: jan.nijtmans, branch: nijtmans, size: 8838 [annotate] [blame] [check-ins using] [diff]
2024-02-20
14:58
Renamed tlsBIO.c → generic/tlsBIO.c. Move all *.c and *.h files to the /generic/ directory. Update win/makefile.vc from [https://chiselapp.com/user/bohagan/repository/TCLTLS/index] file: [fc3b42ebe3] check-in: [b921cb3e6e] user: jan.nijtmans, branch: nijtmans, size: 8850 [annotate] [blame] [check-ins using]
14:58
Renamed to generic/tlsBIO.c. Move all *.c and *.h files to the /generic/ directory. Update win/makefile.vc from [https://chiselapp.com/user/bohagan/repository/TCLTLS/index] check-in: [b921cb3e6e] user: jan.nijtmans, branch: nijtmans, size: 0
13:00
Make all C-/H-files Tcl 9-ready, with all kinds of code-cleanup. Build environment not handled yet. file: [fc3b42ebe3] check-in: [ceb72b0012] user: jan.nijtmans, branch: nijtmans, size: 8850 [annotate] [blame] [check-ins using] [diff]
2024-02-03
03:15
Added more IO logging and error callback messages. Removed duplicate messages. file: [85f81b1367] check-in: [a3728bd654] user: bohagan, branch: trunk, size: 8420 [annotate] [blame] [check-ins using] [diff]
2024-01-24
14:35
First changes needed for Tcl 9.0 file: [b685c38f11] check-in: [3057d6e2e0] user: jan.nijtmans, branch: nijtmans, size: 8879 [annotate] [blame] [check-ins using] [diff]
2023-10-10
00:06
Created cryptography branch file: [3977ec0a04] check-in: [0cd384c2ff] user: bohagan, branch: crypto, size: 8206 [annotate] [blame] [check-ins using] [diff]
2023-09-23
22:37
Updates for TCL 9.0 and Tcl_Size change file: [904acc3cbd] check-in: [c740ba0cb8] user: bohagan, branch: trunk, size: 8305 [annotate] [blame] [check-ins using] [diff]
2023-05-27
03:06
Removed support for obsolete OpenSSL versions prior to v1.1.1. file: [88d81d7f98] check-in: [0de7b4fc0a] user: bohagan, branch: status_x509, size: 8364 [annotate] [blame] [check-ins using] [diff]
2023-05-13
20:25
Deleted: Merged TEA branch into master check-in: [6c02d4d029] user: bohagan, branch: trunk, size: 0
2023-04-30
16:07
Added: Moved files to subdirectories per TEA directory structure. file: [2e81a5f072] check-in: [3dcd70f98e] user: bohagan, branch: TEA, size: 9404 [annotate] [blame] [check-ins using]
16:07
Deleted: Moved files to subdirectories per TEA directory structure. check-in: [3dcd70f98e] user: bohagan, branch: TEA, size: 0
02:08
Format clean-ups. file: [2e81a5f072] check-in: [e02b79f82f] user: bohagan, branch: TEA, size: 9404 [annotate] [blame] [check-ins using] [diff]
2023-04-23
02:36
Applied patch to add OpenSSL3 KTLS trivial processing. Description: Patch adds trivial processing for BIO_CTRL_GET_KTLS_SEND and BIO_CTRL_GET_KTLS_RECV control commands to make tcltls working with OpenSSL 3.0. See also: - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006587 - https://bugzilla.redhat.com/show_bug.cgi?id=2088363 Source: https://sources.debian.org/src/tcltls/1.7.22-3/debian/patches/openssl3.patch file: [71885cfb41] check-in: [6f19aa6623] user: bohagan, branch: trunk, size: 9182 [annotate] [blame] [check-ins using] [diff]
02:08
Changes for OpenSSL v1.1.1 to make compatible with no deprecated option. file: [d88dbca933] check-in: [2ed802a7af] user: bohagan, branch: trunk, size: 8918 [annotate] [blame] [check-ins using] [diff]
2023-04-10
01:27
Initial changes for TCL 9.0. Fixed package requires to work with TCL 9.0. Removed obsolete macro _ANSI_ARGS_, use ANSI arg definitions, etc. Macros: CONST84 to const, WIN32 to _WIN32, CONST to const, VOID to void, etc. Replaced Tcl_SaveResult with Tcl_SaveInterpState, Tcl_RestoreResult with Tcl_RestoreInterpState, and Tcl_DiscardResult with Tcl_DiscardInterpState. Use Tcl_BackgroundError for pre TCL 8.6 and Tcl_BackgroundException for TCL 8.6+. file: [2fccc48eb3] check-in: [275ecbcc5d] user: bohagan, branch: trunk, size: 8813 [annotate] [blame] [check-ins using] [diff]
2023-03-05
03:04
Added support for optional TLS commands BIO_CTRL_POP and BIO_CTRL_PUSH. BIO_CTRL_PUSH is an optional value that is not handled in the tlsBIO:BioCtrl(). The larger problem is that the library does not support new optional commands because it returns -2 for unknown cmds in BioCtrl(). I would suggest changing the default return value to 0. I confirmed that this fixed the issue. Source: https://core.tcl-lang.org/tcltls/tktview/006bd0c74e file: [03b2b7bcd6] check-in: [602c39a56c] user: bohagan, branch: trunk, size: 9303 [annotate] [blame] [check-ins using] [diff]
2023-03-04
23:33
Patch by Sergei Golovan (Debian) to fix the compiler warnings about implicit fall-through in case. Source: File: https://sources.debian.org/src/tcltls/1.7.22-3/debian/patches/fall-through.patch file: [b4e01a8adf] check-in: [e2e798877b] user: bohagan, branch: trunk, size: 9000 [annotate] [blame] [check-ins using] [diff]
19:33
Casting clean-ups to fix compiler warnings. Source: https://sourceforge.net/p/tls/patches/11/ and https://sourceforge.net/p/tls/patches/_discuss/thread/988300e7/b6bb/attachment/patch-warnings file: [dac31f53fe] check-in: [227a7d7d10] user: bohagan, branch: trunk, size: 8956 [annotate] [blame] [check-ins using] [diff]
17:58
Minor updates to catch NULL channels. Source: https://www.androwish.org/home/info/982ebf9d31a60440 [982ebf9d31] file: [2da727af1f] check-in: [270bf9327b] user: bohagan, branch: trunk, size: 8994 [annotate] [blame] [check-ins using] [diff]
2018-10-30
14:20
Applied patch from Jinhu to address [94c6a431fee] file: [7f6303ee40] check-in: [afec51b85b] user: rkeene, branch: trunk, size: 8957 [annotate] [blame] [check-ins using] [diff]
2017-11-08
14:59
Still looking into this file: [91c2172d0d] check-in: [7793b78e70] user: rkeene, branch: bug-eof-loop-6dd5588df6-2, size: 9010 [annotate] [blame] [check-ins using] [diff]
2017-09-21
16:07
More soft-EOF mappings file: [199d9ebcac] check-in: [d63ee30cb2] user: rkeene, branch: bug-eof-loop-6dd5588df6, size: 8935 [annotate] [blame] [check-ins using] [diff]
2016-12-14
14:40
Updated EOF while reading from the BIO to map to soft EOF file: [c3e8b987ad] check-in: [24ce678ecd] user: rkeene, branch: trunk, size: 8935 [annotate] [blame] [check-ins using] [diff]
2016-12-13
22:04
Merged in trunk file: [561dcc523d] check-in: [1ebb5befd0] user: rkeene, branch: feature-multibackend, size: 8898 [annotate] [blame] [check-ins using] [diff]
18:49
Less heavy handed rewriting of error codes in Tcl BIO file: [561dcc523d] check-in: [d8ce3045d5] user: rkeene, branch: trunk, size: 8898 [annotate] [blame] [check-ins using] [diff]
04:50
Updated to not declare variables for checking for fastpath unless fastpath is being compiled in file: [e6c5524fec] check-in: [0a5d288053] user: rkeene, branch: wip-fix-io-layer, size: 8932 [annotate] [blame] [check-ins using] [diff]
04:48
Updated BIO handling to be more clear file: [f21a616436] check-in: [2dbea6a68d] user: rkeene, branch: wip-fix-io-layer, size: 8894 [annotate] [blame] [check-ins using] [diff]
2016-12-12
01:15
Updated wording in debugging message to be more accurate file: [1579a1d145] check-in: [6462992c95] user: rkeene, branch: wip-fix-io-layer, size: 8146 [annotate] [blame] [check-ins using] [diff]
2016-12-11
23:57
Added a flag for fastpath so that errors can be found while using it file: [62db7198c2] check-in: [8b2b046ff5] user: rkeene, branch: wip-fix-io-layer, size: 8155 [annotate] [blame] [check-ins using] [diff]
20:05
Fixed pass-through to fetch file descriptor using a pointer file: [f1da770d9f] check-in: [b5ba86f2be] user: rkeene, branch: wip-fix-io-layer, size: 8104 [annotate] [blame] [check-ins using] [diff]
19:20
Updated to support optionally enabling/disabling a faster path for talking to the underlying channel file: [f8c02fc8c8] check-in: [d25ae3c232] user: rkeene, branch: wip-fix-io-layer, size: 8165 [annotate] [blame] [check-ins using] [diff]
19:12
Corrected extraneous format specifier file: [e135f89793] check-in: [ff4801f473] user: rkeene, branch: wip-fix-io-layer, size: 8125 [annotate] [blame] [check-ins using] [diff]
19:10
Added a lot of work towards fixing the I/O layer file: [430c181031] check-in: [ee7ea6a917] user: rkeene, branch: wip-fix-io-layer, size: 8130 [annotate] [blame] [check-ins using] [diff]
2016-12-10
04:42
Renamed tlsBIO.c → tls_openssl_bio.c. Renamed TLS BIO driver to indicate its OpenSSL-specific-ness file: [4c45fdf356] check-in: [bd4aba3487] user: rkeene, branch: feature-multibackend, size: 6134 [annotate] [blame] [check-ins using]
04:42
Renamed to tls_openssl_bio.c. Renamed TLS BIO driver to indicate its OpenSSL-specific-ness check-in: [bd4aba3487] user: rkeene, branch: feature-multibackend, size: 0
04:29
Minor whitespace cleanup file: [4c45fdf356] check-in: [88815cbc52] user: rkeene, branch: trunk, size: 6134 [annotate] [blame] [check-ins using] [diff]
02:55
Removed backwards compatibility hacks and much reformatting file: [504969653b] check-in: [f087e1fe61] user: rkeene, branch: trunk, size: 6135 [annotate] [blame] [check-ins using] [diff]
01:43
Reformatted BIO code file: [7f72e998da] check-in: [c34f472c39] user: rkeene, branch: trunk, size: 6096 [annotate] [blame] [check-ins using] [diff]
00:52
Updated the style for prototypes file: [a2664d9c85] check-in: [2db3a07c5e] user: rkeene, branch: trunk, size: 6363 [annotate] [blame] [check-ins using] [diff]
00:48
Added additional debugging file: [cad97cf7a0] check-in: [9686856dd3] user: rkeene, branch: trunk, size: 6527 [annotate] [blame] [check-ins using] [diff]
2016-12-08
08:50
Added a consolidated check for pre-OpenSSL 1.1 API usage file: [19e4f3db10] check-in: [66023e665f] user: rkeene, branch: trunk, size: 6348 [annotate] [blame] [check-ins using] [diff]
08:36
Moved BIO_ wrappers into the BIO source and added more debugging output file: [0649a89784] check-in: [333d833f31] user: rkeene, branch: trunk, size: 6355 [annotate] [blame] [check-ins using] [diff]
07:06
Removed unused interfaces file: [936355d12f] check-in: [613eb92e79] user: rkeene, branch: openssl-1.1, size: 5143 [annotate] [blame] [check-ins using] [diff]
06:53
Initial working version of OpenSSL 1.1.0 API support adapted from patch from Sergei Golovan and Jeremy Sowden file: [f773b0ec71] check-in: [af83631fbb] user: rkeene, branch: openssl-1.1, size: 5260 [annotate] [blame] [check-ins using] [diff]
2016-12-07
15:02
Updated wording of debug messages to be correct file: [540c0ab883] check-in: [7c044da68e] user: rkeene, branch: tls-1-7, size: 4983 [annotate] [blame] [check-ins using] [diff]
15:00
Added more debugging file: [c29c7843c7] check-in: [82acecb1a4] user: rkeene, branch: tls-1-7, size: 4983 [annotate] [blame] [check-ins using] [diff]
14:56
Updated to store the Tcl EOF flag, in case it gets reset in between calls -- causing debugging builds to operate differently than normal builds file: [9ab2986cbf] check-in: [28b99767e9] user: rkeene, branch: tls-1-7, size: 4794 [annotate] [blame] [check-ins using] [diff]
14:51
More debugging file: [a9636d6b57] check-in: [9bb0350edb] user: rkeene, branch: tls-1-7, size: 4747 [annotate] [blame] [check-ins using] [diff]
2016-12-02
19:39
Cleanup BIO creation to be more correct file: [4953796f1e] check-in: [f0312b63df] user: rkeene, branch: tls-1-7, size: 4542 [annotate] [blame] [check-ins using] [diff]
16:25
Added an --enable-debug and made debug-printf macro more fancy file: [0502516890] check-in: [8a3f4fc732] user: rkeene, branch: tls-1-7, size: 4512 [annotate] [blame] [check-ins using] [diff]
16:13
Cleaned up compiler warnings with debugging statements casting pointers to ints file: [b10260a16d] check-in: [ac2c67d21d] user: rkeene, branch: tls-1-7, size: 4587 [annotate] [blame] [check-ins using] [diff]
2016-11-22
22:11
Removed artifacts from conversion from CVS file: [b90d32218c] check-in: [c75816429f] user: rkeene, branch: tls-1-7, size: 4651 [annotate] [blame] [check-ins using] [diff]
2004-03-24
05:22
Fix build warnings. file: [66eac232ea] check-in: [67bf2dd40d] user: razzell, branch: trunk, size: 4761 [annotate] [blame] [check-ins using] [diff]
2004-02-04
04:02
Fix build warnings. file: [eab9c4dc8f] check-in: [bc575f4a87] user: razzell, branch: trunk, size: 4755 [annotate] [blame] [check-ins using] [diff]
2002-02-04
22:46
* tls.htm: * tls.c: added support for local certificate status check, as well as returning the # of bits in the session key. [Patch #505698] (rose) * tls.c: * tlsIO.c: * tlsBIO.c: added CONSTs to satisfy Tcl 8.4 sources. This may give warnings when compiled against 8.3, but they can be ignored. file: [3e7555cac8] check-in: [c34385bbcd] user: hobbs, branch: trunk, size: 4765 [annotate] [blame] [check-ins using] [diff]
2000-08-18
19:17
* tlsBIO.c: * tlsIO.c: corrected pedantic cast errors. file: [61828ed639] check-in: [5bc402b4bf] user: hobbs, branch: trunk, size: 4729 [annotate] [blame] [check-ins using] [diff]
2000-08-15
00:02
* tlsInt.h: * tlsIO.c: * tlsBIO.c: * tls.c: changed around to only working with 8.2.0+ (8.3.2+ preferred), with runtime checks for pre- and post-io-rewrite. file: [c6f920b02f] check-in: [33ea0b5a9d] user: hobbs, branch: trunk, size: 4553 [annotate] [blame] [check-ins using] [diff]
2000-07-27
01:58
* merged all changes from tls-1-3-io-rewrite back into main branch file: [03080294a4] check-in: [a636fa7c56] user: hobbs, branch: trunk, size: 4495 [annotate] [blame] [check-ins using] [diff]
2000-07-26
22:15
* tls.c (ImportObjCmd): removed unnecessary use of 'bio' arg. (Tls_Init): check return value of SSL_library_init. Also lots of whitespace cleanup (more like Tcl Eng style guide), but not all code was cleaned up. * tlsBIO.c: minor whitespace cleanup * tlsIO.c: minor whitespace cleanup. (TlsInputProc, TlsOutputProc): Added ERR_clear_error before calls to BIO_read or BIO_write, because we could otherwise end up pulling an error off the stack that didn't belong to us. Also cleanup up excessive use of gotos. file: [8a7d792ec5] check-in: [e64e21d80e] user: hobbs, branch: tls-1-3-io-rewrite, size: 4499 [annotate] [blame] [check-ins using] [diff]
2000-07-21
05:32
* tests/tlsIO.test: corrected various tests to be correct for TLS stacked channels (as opposed to the standard sockets the test suite was adopted from). Key differences are that TLS cannot operate in one process without all channels being non-blocking, or the handshake will block, and handshaking must be forced in some cases. Also, handshakes don't seem to complete unless the client has placed at least one byte for the server to read in the channel. * tests/remote.tcl: corrected the finding of tests certificates * tlsIO.c (TlsCloseProc): removed deleting of timer handler as that is handled by Tls_Clean. * tls.tcl (tls::_accept): corrected the internal _accept to trickle callback errors to the user. * Makefile.in: made the install-binaries target regenerate the pkgIndex.tcl correctly. The test target probably shouldn't screw it up, but this is to be on the safe side. file: [1167365c8d] check-in: [977988aed6] user: hobbs, branch: tls-1-3-io-rewrite, size: 4480 [annotate] [blame] [check-ins using] [diff]
2000-07-12
01:54
* tlsIO.c: changed all the channel procs to start with Tls* for better parity when comparing with Transform channel procs. Rewrote TlsWatchProc, added TlsNotifyProc according to the new channel design, which also leaves TlsChannelHandler unused. * tlsBIO.c (BioCtrl): changed BIO_CTRL_FLUSH case to use Tcl_WriteRaw instead of Tcl_Flush (to operate on correct channel in the stack instead of starting at the top again). Would otherwise cause a recursive stack bomb when implicit handshaking took effect. file: [a47b0bf135] check-in: [a27c6affe5] user: hobbs, branch: tls-1-3-io-rewrite, size: 4467 [annotate] [blame] [check-ins using] [diff]
2000-07-11
04:58
* tlsBIO.c (BioWrite, BioRead): changed Tcl_Read/Write to Tcl_ReadRaw/TclWriteRaw. * tls.c: added use of Tcl_GetTopChannel after Tcl_GetChannel and got return value from Tcl_StackChannel. * tests/tlsIO.test: added some handshaking that shouldn't be necessary, but we crash otherwise (needs more testing). * tlsIO.c: added support for "corrected" stacked channels. All the above channels are in TCL_CHANNEL_VERSION_2 #ifdefs. file: [a638221c0a] check-in: [fb9a612600] user: hobbs, branch: tls-1-3-io-rewrite, size: 4362 [annotate] [blame] [check-ins using] [diff]
2000-01-20
01:51
updated copyright notice file: [e6c3698fee] check-in: [4afdc17574] user: aborr, branch: trunk, size: 4187 [annotate] [blame] [check-ins using] [diff]
2000-01-19
22:10
Added: Initial import of tls extension. file: [089891ecdb] check-in: [27770ce26d] user: aborr, branch: tls-vendor-branch, size: 4191 [annotate] [blame] [check-ins using]