|
From: | Simon Josefsson |
Subject: | [Help-gnutls] Re: gnutls_x509_crt_check_hostname() |
Date: | Wed, 12 Aug 2009 10:43:21 +0200 |
User-agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
FWIW, I extended the self-test to check the situation you describe, and as far as I can tell it appears to do the right thing. Code in: http://git.savannah.gnu.org/cgit/gnutls.git/diff/tests/hostname-check.c http://git.savannah.gnu.org/cgit/gnutls.git/diff/tests/utils.c Compile as gcc -o hostname-check hostname-check.c -lgnutls utils.c Expected output is ... Testing pem9... Hostname correctly does not match (0) Hostname correctly matches (1) ... /Simon
[Prev in Thread] | Current Thread | [Next in Thread] |