[Help-gnutls] Re: gnutls_x509_crt_check_hostname()
Simon Josefsson
simon at josefsson.org
Wed Aug 12 10:43:21 CEST 2009
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
More information about the Gnutls-help
mailing list