OpenBSD CVS

CVS log for src/lib/libssl/Attic/tls13_buffer.c


[BACK] Up to [local] / src / lib / libssl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.6, Sat Oct 23 13:12:14 2021 UTC (2 years, 7 months ago) by jsing
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED

Rename tls13_buffer to tls_buffer.

This code will soon be used in the DTLSv1.2 and TLSv1.2 stack. Also
introduce tls_internal.h and move/rename the read/write/flush callbacks.

ok beck@ tb@

Revision 1.5 / (download) - annotate - [select for diffs], Sun May 16 14:19:04 2021 UTC (3 years ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

Avoid pulling ssl_locl.h into self-contained code.

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 16 14:10:43 2021 UTC (3 years ago) by jsing
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

Make local header inclusion consistent.

Consistently include local headers in the same location, using the same
grouping/sorting across all files.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 10 17:11:25 2020 UTC (4 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)

Add a return value check to tls13_buffer_extend().

In the unlikely event that the return value from the read callback is
larger than the number of bytes we asked for, we can end up incrementing
buf->len beyond capacity. Check the return value from the read callback to
prevent this.

ok inoguchi@ tb@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 20 16:21:20 2019 UTC (4 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.1: +10 -1 lines
Diff to previous 1.1 (colored)

Add accessors to change the buffer in a handshake message.
Needed for doing TLS 1.3 Post Handshake Handshake messages.

ok jsing@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 17 06:32:12 2019 UTC (5 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5

Provide an extensible buffer implementation that uses a read callback.

The read callback returns a TLS13_IO_* value on EOF, failure, want pollin
or want pollout, or a positive value indicating the number of bytes read.

This will be used by upcoming TLSv1.3 handshake message and record
processing code, both of which need the ability to read a fixed size
header, before extending the buffer to the number of bytes specified in the
header.

ok beck@ tb@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.