/*
* Simple GnuTLS client used for testing.
*
- * Copyright (C) 2011 Simon Ruderich
+ * Copyright (C) 2011-2012 Simon Ruderich
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/* Check hostname. */
if (!gnutls_x509_crt_check_hostname(cert, argv[4])) {
fprintf(stderr, "hostname didn't match '%s'\n", argv[4]);
+ return EXIT_FAILURE;
}
gnutls_x509_crt_deinit(cert);