From 5b317d03a17331f400d93fb957216030a8c86fd2 Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 29 May 2015 22:14:32 +0000 Subject: documentation and not-currently-possible error case --- src/IO/tls.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/IO/tls.c') diff --git a/src/IO/tls.c b/src/IO/tls.c index b16c2ed1..dbdb1c92 100644 --- a/src/IO/tls.c +++ b/src/IO/tls.c @@ -466,10 +466,16 @@ static bool_t pattern_match (const char *pattern, const char *string) return *n == '\0'; } +/* + * Check that the certificate corresponds to the site it's presented for. + * + * Return TRUE if the hostname matched or the user indicated acceptance. + * FALSE on failure. + */ static bool_t Tls_check_cert_hostname(X509 *cert, const DilloUrl *url, int *choice) { - dReturn_val_if_fail(cert && url, -1); + dReturn_val_if_fail(cert && url, FALSE); char *msg; const char *host = URL_HOST(url); -- cgit v1.2.3