summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/Makefile.am6
-rw-r--r--lib/x509/crl.c1
-rw-r--r--lib/x509/crl_write.c1
-rw-r--r--lib/x509/crq.c1
-rw-r--r--lib/x509/dn.c3
-rw-r--r--lib/x509/dn.h58
-rw-r--r--lib/x509/pkcs12.c3
-rw-r--r--lib/x509/pkcs7.c3
-rw-r--r--lib/x509/privkey.c1
-rw-r--r--lib/x509/privkey_pkcs8.c1
-rw-r--r--lib/x509/rfc2818_hostname.c1
-rw-r--r--lib/x509/sign.c1
-rw-r--r--lib/x509/verify.c1
-rw-r--r--lib/x509/x509.c1
-rw-r--r--lib/x509/x509_int.h28
-rw-r--r--lib/x509/x509_write.c1
16 files changed, 34 insertions, 77 deletions
diff --git a/lib/x509/Makefile.am b/lib/x509/Makefile.am
index ab6cb5b5eb..7ccc1e62fb 100644
--- a/lib/x509/Makefile.am
+++ b/lib/x509/Makefile.am
@@ -31,9 +31,9 @@ noinst_LTLIBRARIES = libgnutls_x509.la
libgnutls_x509_la_SOURCES = crl.c dn.c common.c x509.c extensions.c \
dsa.c rfc2818_hostname.c verify.c mpi.c privkey.c pkcs7.c \
crq.c sign.c privkey_pkcs8.c pkcs12.c pkcs12_bag.c \
- pkcs12_encr.c x509_write.c crl_write.c dn.h common.h \
- x509_int.h extensions.h pkcs7.h verify.h mpi.h privkey.h \
- pkcs12.h rfc2818.h dsa.h output.c
+ pkcs12_encr.c x509_write.c crl_write.c common.h x509_int.h \
+ extensions.h pkcs7.h verify.h mpi.h privkey.h pkcs12.h \
+ rfc2818.h dsa.h output.c
EXTRA_DIST = x509-api.texi
diff --git a/lib/x509/crl.c b/lib/x509/crl.c
index 6e7536d651..4beea257ad 100644
--- a/lib/x509/crl.c
+++ b/lib/x509/crl.c
@@ -33,7 +33,6 @@
#include <common.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
/**
* gnutls_x509_crl_init - This function initializes a gnutls_x509_crl_t structure
diff --git a/lib/x509/crl_write.c b/lib/x509/crl_write.c
index be74c8e8ff..6b9cd2cdc5 100644
--- a/lib/x509/crl_write.c
+++ b/lib/x509/crl_write.c
@@ -36,7 +36,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <mpi.h>
#include <extensions.h>
#include <libtasn1.h>
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index 0c4cf4dc1f..ac74c8a7c2 100644
--- a/lib/x509/crq.c
+++ b/lib/x509/crq.c
@@ -36,7 +36,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <mpi.h>
#include <extensions.h>
#include <libtasn1.h>
diff --git a/lib/x509/dn.c b/lib/x509/dn.c
index 9c94cd5f3f..129227a722 100644
--- a/lib/x509/dn.c
+++ b/lib/x509/dn.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2007, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
@@ -30,7 +30,6 @@
#include <gnutls_str.h>
#include <common.h>
#include <gnutls_num.h>
-#include <dn.h>
/* This file includes all the required to parse an X.509 Distriguished
* Name (you need a parser just to read a name in the X.509 protoocols!!!)
diff --git a/lib/x509/dn.h b/lib/x509/dn.h
deleted file mode 100644
index 93a9262c70..0000000000
--- a/lib/x509/dn.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2003, 2004, 2005 Free Software Foundation
- *
- * Author: Nikos Mavrogiannopoulos
- *
- * This file is part of GNUTLS.
- *
- * The GNUTLS library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- * USA
- *
- */
-
-#ifndef DN_H
-# define DN_H
-
-/* Some OIDs usually found in Distinguished names
- */
-#define OID_X520_COUNTRY_NAME "2.5.4.6"
-#define OID_X520_ORGANIZATION_NAME "2.5.4.10"
-#define OID_X520_ORGANIZATIONAL_UNIT_NAME "2.5.4.11"
-#define OID_X520_COMMON_NAME "2.5.4.3"
-#define OID_X520_LOCALITY_NAME "2.5.4.7"
-#define OID_X520_STATE_OR_PROVINCE_NAME "2.5.4.8"
-#define OID_LDAP_DC "0.9.2342.19200300.100.1.25"
-#define OID_LDAP_UID "0.9.2342.19200300.100.1.1"
-#define OID_PKCS9_EMAIL "1.2.840.113549.1.9.1"
-
-int _gnutls_x509_parse_dn (ASN1_TYPE asn1_struct,
- const char *asn1_rdn_name, char *buf,
- size_t * sizeof_buf);
-
-int _gnutls_x509_parse_dn_oid (ASN1_TYPE asn1_struct,
- const char *asn1_rdn_name, const char *oid,
- int indx, unsigned int raw_flag, void *buf,
- size_t * sizeof_buf);
-
-int _gnutls_x509_set_dn_oid (ASN1_TYPE asn1_struct,
- const char *asn1_rdn_name, const char *oid,
- int raw_flag, const char *name, int sizeof_name);
-
-int _gnutls_x509_get_dn_oid (ASN1_TYPE asn1_struct,
- const char *asn1_rdn_name,
- int indx, void *_oid, size_t * sizeof_oid);
-
-
-#endif
diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c
index d43e8d560b..b258373108 100644
--- a/lib/x509/pkcs12.c
+++ b/lib/x509/pkcs12.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
@@ -37,7 +37,6 @@
#include <common.h>
#include <x509_b64.h>
#include <pkcs12.h>
-#include <dn.h>
#include <mpi.h>
#include <gc.h>
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c
index 5f6c8fd135..f24bc0966e 100644
--- a/lib/x509/pkcs7.c
+++ b/lib/x509/pkcs7.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
@@ -36,7 +36,6 @@
#include <common.h>
#include <x509_b64.h>
#include <pkcs7.h>
-#include <dn.h>
#define SIGNED_DATA_OID "1.2.840.113549.1.7.2"
diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c
index 0f710017e2..ce27edd212 100644
--- a/lib/x509/privkey.c
+++ b/lib/x509/privkey.c
@@ -32,7 +32,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <mpi.h>
#include <extensions.h>
#include <dsa.h>
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index 350fb5e272..caf61ab3fd 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -34,7 +34,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <pkcs12.h>
#include <privkey.h>
#include <extensions.h>
diff --git a/lib/x509/rfc2818_hostname.c b/lib/x509/rfc2818_hostname.c
index f2fd3acad8..9742f4153f 100644
--- a/lib/x509/rfc2818_hostname.c
+++ b/lib/x509/rfc2818_hostname.c
@@ -23,7 +23,6 @@
#include <gnutls_int.h>
#include <x509_int.h>
-#include <dn.h>
#include <common.h>
#include <rfc2818.h>
#include <gnutls_errors.h>
diff --git a/lib/x509/sign.c b/lib/x509/sign.c
index e60b92ae62..36a0f03ac2 100644
--- a/lib/x509/sign.c
+++ b/lib/x509/sign.c
@@ -38,7 +38,6 @@
#include <gnutls_sig.h>
#include <gnutls_str.h>
#include <gnutls_datum.h>
-#include <dn.h>
#include <x509_int.h>
#include <mpi.h>
#include <common.h>
diff --git a/lib/x509/verify.c b/lib/x509/verify.c
index e0a586a501..052b9a4dbc 100644
--- a/lib/x509/verify.c
+++ b/lib/x509/verify.c
@@ -35,7 +35,6 @@
#include <gnutls_sig.h>
#include <gnutls_str.h>
#include <gnutls_datum.h>
-#include <dn.h>
#include <x509_int.h>
#include <mpi.h>
#include <common.h>
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index 0d2214eb9d..e591b00c88 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -32,7 +32,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <extensions.h>
#include <libtasn1.h>
#include <mpi.h>
diff --git a/lib/x509/x509_int.h b/lib/x509/x509_int.h
index ed88426f72..3ff438cc2c 100644
--- a/lib/x509/x509_int.h
+++ b/lib/x509/x509_int.h
@@ -127,4 +127,32 @@ int _gnutls_x509_pkix_sign (ASN1_TYPE src, const char *src_name,
gnutls_x509_crt_t issuer,
gnutls_x509_privkey_t issuer_key);
+/* dn.c */
+#define OID_X520_COUNTRY_NAME "2.5.4.6"
+#define OID_X520_ORGANIZATION_NAME "2.5.4.10"
+#define OID_X520_ORGANIZATIONAL_UNIT_NAME "2.5.4.11"
+#define OID_X520_COMMON_NAME "2.5.4.3"
+#define OID_X520_LOCALITY_NAME "2.5.4.7"
+#define OID_X520_STATE_OR_PROVINCE_NAME "2.5.4.8"
+#define OID_LDAP_DC "0.9.2342.19200300.100.1.25"
+#define OID_LDAP_UID "0.9.2342.19200300.100.1.1"
+#define OID_PKCS9_EMAIL "1.2.840.113549.1.9.1"
+
+int _gnutls_x509_parse_dn (ASN1_TYPE asn1_struct,
+ const char *asn1_rdn_name, char *buf,
+ size_t * sizeof_buf);
+
+int _gnutls_x509_parse_dn_oid (ASN1_TYPE asn1_struct,
+ const char *asn1_rdn_name, const char *oid,
+ int indx, unsigned int raw_flag, void *buf,
+ size_t * sizeof_buf);
+
+int _gnutls_x509_set_dn_oid (ASN1_TYPE asn1_struct,
+ const char *asn1_rdn_name, const char *oid,
+ int raw_flag, const char *name, int sizeof_name);
+
+int _gnutls_x509_get_dn_oid (ASN1_TYPE asn1_struct,
+ const char *asn1_rdn_name,
+ int indx, void *_oid, size_t * sizeof_oid);
+
#endif
diff --git a/lib/x509/x509_write.c b/lib/x509/x509_write.c
index 90e1b054ef..2b9feab8bd 100644
--- a/lib/x509/x509_write.c
+++ b/lib/x509/x509_write.c
@@ -36,7 +36,6 @@
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <dn.h>
#include <mpi.h>
#include <extensions.h>
#include <libtasn1.h>