Remove x509_flag_names, flags do not work with ENUM()
authorMartin Willi <martin@revosec.ch>
Fri, 3 Dec 2010 12:23:59 +0000 (13:23 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Jan 2011 15:45:56 +0000 (16:45 +0100)
src/libstrongswan/Makefile.am
src/libstrongswan/credentials/certificates/x509.c [deleted file]
src/libstrongswan/credentials/certificates/x509.h

index 7cd90a9..5853e97 100644 (file)
@@ -30,8 +30,7 @@ credentials/keys/private_key.c credentials/keys/private_key.h \
 credentials/keys/public_key.c credentials/keys/public_key.h \
 credentials/keys/shared_key.c credentials/keys/shared_key.h \
 credentials/certificates/certificate.c credentials/certificates/certificate.h \
-credentials/certificates/x509.h credentials/certificates/x509.c \
-credentials/certificates/ac.h \
+credentials/certificates/x509.h credentials/certificates/ac.h \
 credentials/certificates/crl.h credentials/certificates/crl.c \
 credentials/certificates/pkcs10.h \
 credentials/certificates/ocsp_request.h \
diff --git a/src/libstrongswan/credentials/certificates/x509.c b/src/libstrongswan/credentials/certificates/x509.c
deleted file mode 100644 (file)
index 66dc192..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2008 Martin Willi
- * Hochschule fuer Technik Rapperswil
- *
- * 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 the
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * for more details.
- */
-
-#include "x509.h"
-
-ENUM(x509_flag_names, X509_NONE, X509_IP_ADDR_BLOCKS,
-       "X509_NONE",
-       "X509_CA",
-       "X509_AA",
-       "X509_OCSP_SIGNER",
-       "X509_SERVER_AUTH",
-       "X509_CLIENT_AUTH",
-       "X509_SELF_SIGNED",
-       "X509_IP_ADDR_BLOCKS",
-);
-
index 3f1c4b7..394b613 100644 (file)
@@ -52,11 +52,6 @@ enum x509_flag_t {
 };
 
 /**
- * enum names for x509 flags
- */
-extern enum_name_t *x509_flag_names;
-
-/**
  * X.509 certificate interface.
  *
  * This interface adds additional methods to the certificate_t type to