diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-07-10 18:54:54 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-07-10 18:56:54 +0200 |
commit | 4eb3ed60781cd3f45f7269b623c5159d53bab43b (patch) | |
tree | 68f3b1e4eede9458902fb30c64f6428c3800bcf7 /NEWS | |
parent | fa3fb836cc6a371c575465f122b2c96f03accafb (diff) | |
download | gnutls-4eb3ed60781cd3f45f7269b623c5159d53bab43b.tar.gz |
guile: Session record port treats premature termination as EOF.
* guile/src/core.c (do_fill_port) [USING_GUILE_BEFORE_2_2]: Treat
GNUTLS_E_PREMATURE_TERMINATION as EOF.
(read_from_session_record_port) [!USING_GUILE_BEFORE_2_2]: Likewise.
* guile/tests/premature-termination.scm: New file.
* guile/Makefile.am (TESTS): Add it.
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -16,6 +16,18 @@ See the end for copying conditions. ** API and ABI modifications: gnutls_fips140_run_self_tests: New function +** guile: Session record port treats premature termination as EOF + +Previously, a ‘gnutls-error’ exception with the +‘error/premature-termination’ value would be thrown while reading from a +session record port when the underlying session was terminated +prematurely. This was inconvenient since users of the port may not be +prepared to handle such an exception. + +Reading from the session record port now returns the end-of-file object +instead of throwing an exception, just like it would for a proper +session termination. + * Version 3.7.6 (released 2022-05-27) ** libgnutls: Fixed invalid write when gnutls_realloc_zero() |