summaryrefslogtreecommitdiff
path: root/lib/errors.c
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-01-26 21:44:28 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-01-31 09:31:34 +0100
commit00c8b6a95ab83facc9230448b174f26a223e6a51 (patch)
treee5df5fe8ac583e60d0098d5ad95937e46552b760 /lib/errors.c
parent21d2b7e766323fbd7eed6cf2efe7743991a2099c (diff)
downloadgnutls-tmp-fix-sni-error.tar.gz
Add GNUTLS_E_RECEIVED_DISALLOWED_NAME for illegal SNI namestmp-fix-sni-error
An illegal/disallowed SNI server name previously generated the misleading message "An illegal parameter has been received.". This commit changes it to "A disallowed SNI server name has been received.". Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/errors.c')
-rw-r--r--lib/errors.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/errors.c b/lib/errors.c
index a1bdf9b873..520958b70c 100644
--- a/lib/errors.c
+++ b/lib/errors.c
@@ -206,6 +206,8 @@ static const gnutls_error_entry error_entries[] = {
ERROR_ENTRY(N_("An illegal parameter was found."),
GNUTLS_E_ILLEGAL_PARAMETER),
ERROR_ENTRY(N_("Error while reading file."), GNUTLS_E_FILE_ERROR),
+ ERROR_ENTRY(N_("A disallowed SNI server name has been received."),
+ GNUTLS_E_RECEIVED_DISALLOWED_NAME),
ERROR_ENTRY(N_("ASN1 parser: Element was not found."),
GNUTLS_E_ASN1_ELEMENT_NOT_FOUND),
@@ -462,14 +464,14 @@ static const gnutls_error_entry non_fatal_error_entries[] = {
*
* If a GnuTLS function returns a negative error code you may feed that
* value to this function to see if the error condition is fatal to
- * a TLS session (i.e., must be terminated).
+ * a TLS session (i.e., must be terminated).
*
* Note that you may also want to check the error code manually, since some
* non-fatal errors to the protocol (such as a warning alert or
* a rehandshake request) may be fatal for your program.
*
* This function is only useful if you are dealing with errors from
- * functions that relate to a TLS session (e.g., record layer or handshake
+ * functions that relate to a TLS session (e.g., record layer or handshake
* layer handling functions).
*
* Returns: Non-zero value on fatal errors or zero on non-fatal.