Emilia Kasper 95929797a0 Fix hostname validation in the command-line tool to honour negative return values.
Specifically, an ASN.1 NumericString in the certificate CN will fail UTF-8 conversion
and result in a negative return value, which the "x509 -checkhost" command-line option
incorrectly interpreted as success.

Also update X509_check_host docs to reflect reality.

Thanks to Sean Burford (Google) for reporting this issue.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 0923e7df9eafec6db9c75405d7085ec8581f01bd)
2015-02-10 15:36:03 +01:00
..
2006-05-14 11:28:00 +00:00
2006-05-14 11:28:00 +00:00
2014-07-03 12:57:16 -04:00
2010-05-03 15:29:51 +00:00
2003-02-27 13:02:46 +00:00
2015-01-02 23:01:38 +00:00
2000-09-16 15:39:28 +00:00
2014-06-29 13:39:20 +01:00
2000-09-16 15:39:28 +00:00
2009-04-16 17:22:51 +00:00
2006-12-06 09:10:59 +00:00
2010-04-06 14:45:31 +00:00
2005-02-19 10:26:18 +00:00
2009-10-28 13:51:56 +00:00
2004-03-06 08:43:36 +00:00
2000-02-24 11:55:57 +00:00
2000-09-20 03:28:54 +00:00
2014-04-15 18:19:26 +01:00
2008-04-10 10:46:11 +00:00
2002-10-09 12:06:12 +00:00
2002-10-06 12:24:09 +00:00
2009-04-06 15:16:41 +00:00
2002-10-09 12:06:12 +00:00
2002-10-09 17:19:59 +00:00
2009-09-12 23:34:56 +00:00
2002-10-09 12:06:12 +00:00
2014-09-23 18:20:26 +02:00
2000-02-24 11:55:57 +00:00
2000-02-01 01:37:00 +00:00
2004-11-14 15:11:37 +00:00
2014-07-02 03:45:01 +01:00
2000-02-01 01:37:00 +00:00
2000-02-24 11:55:57 +00:00
2000-02-24 11:55:57 +00:00
2000-02-01 01:37:00 +00:00
2000-02-24 11:55:57 +00:00
2014-07-03 12:57:16 -04:00
2000-09-23 07:16:17 +00:00
2002-10-07 17:31:00 +00:00
2006-10-27 21:58:09 +00:00
2006-10-27 21:58:09 +00:00
2006-05-14 11:28:00 +00:00
2014-07-17 12:08:26 +01:00
2006-05-14 11:28:00 +00:00
2002-10-09 17:15:35 +00:00
2009-05-17 14:48:02 +00:00
2000-03-22 15:30:03 +00:00
2007-09-24 11:01:18 +00:00
2001-03-21 15:25:56 +00:00
2000-02-25 16:00:24 +00:00
2006-10-27 21:58:09 +00:00
2000-02-24 11:55:57 +00:00
2006-12-06 09:10:59 +00:00
2003-12-27 15:04:54 +00:00
2014-07-03 12:57:16 -04:00
2006-10-27 21:58:09 +00:00
2006-05-14 11:28:00 +00:00
2007-04-13 13:20:46 +00:00
2006-05-14 11:28:00 +00:00
2007-09-24 11:22:58 +00:00
2006-05-14 11:28:00 +00:00
2010-01-27 12:55:52 +00:00