Up to [local] / src / lib / libtls
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 26 06:24:52 2024 UTC (2 months, 2 weeks ago) by joshua
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +6 -4 lines
Diff to previous 1.21 (colored)
Add error code support to libtls This adds tls_config_error_code() and tls_error_code(), which will become public API at a later date. Additional error codes will be added in follow-up commits. ok jsing@ beck@
Revision 1.21 / (download) - annotate - [select for diffs], Sun May 14 07:26:25 2023 UTC (12 months, 4 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)
add missing #include <string.h>; ok tb@
Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 10 23:39:48 2022 UTC (2 years, 5 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.19: +46 -19 lines
Diff to previous 1.19 (colored)
Convert tls_bio_cb for opaque BIO joint with jsing
Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 12 16:18:39 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored)
Inline strlen() call to reduce/simplify code.
Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 12 16:17:22 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.17: +11 -22 lines
Diff to previous 1.17 (colored)
Inline tls_get_new_cb_bio() from the only place that it gets called, simplifying the code. Also check the provided read and write callbacks before assigning to the context.
Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 12 16:08:49 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.16: +7 -66 lines
Diff to previous 1.16 (colored)
Simplify the TLS callback BIO code - a pointer to the tls context can be stored directly in bio->ptr, rather than allocating and deallocating an intermediate struct. Diff from Marko Kreen <markokr at gmail dot com> - thanks!
Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 12 16:01:47 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.15: +1 -4 lines
Diff to previous 1.15 (colored)
If tls_get_new_cb_bio() fails, an error will already be set.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 12 15:58:56 2017 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)
If no callbacks are specified, return after setting an error rather than continuing on. Also noticed by Marko Kreen.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 4 15:45:55 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.13: +4 -7 lines
Diff to previous 1.13 (colored)
Assign and test, as is consistent with the rest of the libtls code.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 4 15:43:46 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)
Use a consistent name for struct bio_cb * variables.
Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 4 15:42:29 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.11: +8 -8 lines
Diff to previous 1.11 (colored)
Rename struct bio_cb_st to struct bio_cb.
Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 4 15:39:16 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
Do not cast a pointer to a struct, to a char * when assigning to a void *.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 4 15:37:49 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.9: +50 -48 lines
Diff to previous 1.9 (colored)
Use a consistent name for a BIO *, rather than having four different names in the same file.
Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 4 10:54:25 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.8: +6 -33 lines
Diff to previous 1.8 (colored)
There's not much point having three static functions that do a cast and assign a pointer, when we can just inline the three and do one cast followed by three pointer assignments.
Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 4 10:51:35 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.7: +7 -3 lines
Diff to previous 1.7 (colored)
Do not mix declarations and code.
Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 4 10:50:32 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.6: +22 -22 lines
Diff to previous 1.6 (colored)
Rename the internal bio related functions so that they have a common prefix. Makes the code more readable and removes shadowing.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 4 08:17:43 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.5: +2 -4 lines
Diff to previous 1.5 (colored)
There's not much point in casting a void * to a specific type just before calling free(). ok beck@ ingo@
Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 14 11:30:41 2016 UTC (7 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)
Handle the FLUSH BIO cntl, that happens at the end of SSL handshakes. from Tobias Pape
Revision 1.4 / (download) - annotate - [select for diffs], Wed Sep 14 11:26:56 2016 UTC (7 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.3: +21 -3 lines
Diff to previous 1.3 (colored)
Allow callback read/write functions to set TLS_WANT_POLLOUT/POLLIN. from Tobias Pape
Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 4 13:17:08 2016 UTC (7 years, 9 months ago) by jsing
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)
Sort headers and use the installed tls.h, rather than the local one.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 4 12:54:33 2016 UTC (7 years, 9 months ago) by jsing
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)
$OpenBSD$ tag
Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 4 12:26:43 2016 UTC (7 years, 9 months ago) by bcook
Branch: MAIN
Add callback-based interface to libtls. This allows working with buffers and callback functions instead of directly on sockets or file descriptors. Original patch from Tobias Pape <tobias_at_netshed.de>. ok beck@