aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-x509.c')
-rw-r--r--tests/test-x509.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/test-x509.c b/tests/test-x509.c
deleted file mode 100644
index e92ea61..0000000
--- a/tests/test-x509.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Testing tool for X.509v3 routines
- * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
- *
- * This software may be distributed under the terms of the BSD license.
- * See README for more details.
- */
-
-#include "includes.h"
-
-#include "common.h"
-#include "tls/x509v3.h"
-
-extern int wpa_debug_level;
-
-
-int main(int argc, char *argv[])
-{
- FILE *f;
- u8 buf[3000];
- size_t len;
- struct x509_certificate *cert;
-
- wpa_debug_level = 0;
-
- f = fopen(argv[1], "rb");
- if (f == NULL)
- return -1;
- len = fread(buf, 1, sizeof(buf), f);
- fclose(f);
-
- cert = x509_certificate_parse(buf, len);
- if (cert == NULL)
- printf("Failed to parse X.509 certificate\n");
- x509_certificate_free(cert);
-
- return 0;
-}