X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=libeap%2Ftests%2Ftest-x509v3.c;h=bfb0698710dd5d1198cac28b4dbb6837a94cd046;hp=c472c8a660746c275071fd779b52ff8c500ec3a3;hb=4f319dde67a76fe0aaf33f6d2788968012584ada;hpb=ed09b5e64dd485851310307979d5eed14678087b diff --git a/libeap/tests/test-x509v3.c b/libeap/tests/test-x509v3.c index c472c8a..bfb0698 100644 --- a/libeap/tests/test-x509v3.c +++ b/libeap/tests/test-x509v3.c @@ -2,14 +2,8 @@ * Testing tool for X.509v3 routines * Copyright (c) 2006-2007, Jouni Malinen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. */ #include "includes.h" @@ -18,8 +12,6 @@ #include "tls/asn1.h" #include "tls/x509v3.h" -extern int wpa_debug_level; - int main(int argc, char *argv[]) { @@ -59,7 +51,7 @@ int main(int argc, char *argv[]) } printf("\n\nValidating certificate chain\n"); - if (x509_certificate_chain_validate(last, certs, &reason) < 0) { + if (x509_certificate_chain_validate(last, certs, &reason, 0) < 0) { printf("\nCertificate chain validation failed: %d\n", reason); return -1; }