Home GnuPG

Add public function ntbtls_get_last_alert.

Description

Add public function ntbtls_get_last_alert.

* src/ntbtls.h.in (ntbtls_get_last_alert): New.
* src/libntbtls.def, src/libntbtls.vers: Add it.
* src/visibility.c, src/visibility.h: Add wrapper.
* src/context.h (struct _ntbtls_context_s): Add field last_alert.
* src/protocol.c (_ntbtls_read_record): Store alert.
(_ntbtls_get_last_alert): New.
* src/ntbtls-cli.c (simple_client): Print last alert.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 27 2020, 8:46 AM
Parents
rT8b3a059e8a81: Fix printf error in debug output.
Branches
Unknown
Tags
Unknown