Add error code support to libtls
authorjoshua <joshua@openbsd.org>
Tue, 26 Mar 2024 06:24:52 +0000 (06:24 +0000)
committerjoshua <joshua@openbsd.org>
Tue, 26 Mar 2024 06:24:52 +0000 (06:24 +0000)
commit7a756d3745d54f76014cbb694af2a7a421409519
tree1ec3ad22e801c3a1d3bb86ae038d9d8f0e702896
parente719ba2c342fa808a170f9f3315a64a729f16479
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@
12 files changed:
lib/libtls/tls.c
lib/libtls/tls.h
lib/libtls/tls_bio_cb.c
lib/libtls/tls_client.c
lib/libtls/tls_config.c
lib/libtls/tls_conninfo.c
lib/libtls/tls_internal.h
lib/libtls/tls_keypair.c
lib/libtls/tls_ocsp.c
lib/libtls/tls_server.c
lib/libtls/tls_signer.c
lib/libtls/tls_verify.c