der.h errors.h gstr.h parser_aux.h element.h \
errors_int.h int.h mem.h structure.h \
\
- common.h mpi.h compat.h \
+ common.h compat.h \
\
gnutls_extra.h openssl_compat.h \
\
#include <gnutls_auth_int.h>
#include <gnutls_x509.h>
#include "x509/x509_int.h"
-#include "x509/mpi.h"
#ifdef ENABLE_OPENPGP
# include "openpgp/gnutls_openpgp.h"
#endif
/*
- * Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
#include <x509_b64.h> /* for PKCS3 PEM decoding */
#include <gnutls_global.h>
#include <gnutls_dh.h>
-#include <x509/mpi.h>
+#include "x509/x509_int.h"
#include "debug.h"
/*
- * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
+ * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
#include <gnutls_global.h>
#include <gnutls_num.h>
#include "debug.h"
-#include <x509/mpi.h>
+#include <x509/x509_int.h>
#include <x509/common.h>
#include <gc.h>
#include <gnutls_x509.h>
#include "x509/common.h"
#include "x509/x509_int.h"
-#include "x509/mpi.h"
#include "read-file.h"
/*
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 common.h x509_int.h \
- mpi.h pkcs12.h output.c
+ pkcs12.h output.c
EXTRA_DIST = x509-api.texi
/*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
#include <gnutls_x509.h>
#include <gnutls_num.h>
#include <x509_b64.h>
+#include "x509_int.h"
#include <common.h>
-#include <mpi.h>
#include <time.h>
typedef struct _oid2string
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <mpi.h>
#include <libtasn1.h>
static void disable_optional_stuff (gnutls_x509_crl_t crl);
#include <common.h>
#include <gnutls_x509.h>
#include <x509_b64.h>
-#include <x509_int.h>
-#include <mpi.h>
+#include "x509_int.h"
#include <libtasn1.h>
/**
#include <gnutls_int.h>
#include <gnutls_errors.h>
#include <gnutls_global.h>
-#include <mpi.h>
#include <libtasn1.h>
#include <common.h>
#include <x509_int.h>
#include "common.h"
#include "x509_int.h"
#include <gnutls_num.h>
-#include "mpi.h"
/*
* some x509 certificate parsing functions that relate to MPI parameter
+++ /dev/null
-/*
- * Copyright (C) 2003, 2004, 2005, 2008 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
- *
- */
-
-#include <gnutls_int.h>
-#include "x509_int.h"
-
-int _gnutls_x509_crt_get_mpis (gnutls_x509_crt_t cert,
- mpi_t * params, int *params_size);
-int _gnutls_x509_read_rsa_params (opaque * der, int dersize, mpi_t * params);
-int _gnutls_x509_read_dsa_pubkey (opaque * der, int dersize, mpi_t * params);
-int _gnutls_x509_read_dsa_params (opaque * der, int dersize, mpi_t * params);
-
-int _gnutls_x509_write_rsa_params (mpi_t * params, int params_size,
- gnutls_datum_t * der);
-int _gnutls_x509_write_dsa_params (mpi_t * params, int params_size,
- gnutls_datum_t * der);
-int _gnutls_x509_write_dsa_public_key (mpi_t * params, int params_size,
- gnutls_datum_t * der);
-
-int _gnutls_x509_read_uint (ASN1_TYPE node, const char *value,
- unsigned int *ret);
-
-int
-_gnutls_x509_read_der_int (opaque * der, int dersize, mpi_t* out);
-
-int _gnutls_x509_read_int (ASN1_TYPE node, const char *value,
- mpi_t * ret_mpi);
-int _gnutls_x509_write_int (ASN1_TYPE node, const char *value, mpi_t mpi,
- int lz);
-int _gnutls_x509_write_uint32 (ASN1_TYPE node, const char *value,
- uint32_t num);
-
-int _gnutls_x509_write_sig_params (ASN1_TYPE dst, const char *dst_name,
- gnutls_pk_algorithm_t pk_algorithm,
- gnutls_digest_algorithm_t, mpi_t * params,
- int params_size);
#include <gnutls_num.h>
#include <common.h>
#include <x509_b64.h>
+#include "x509_int.h"
#include <pkcs12.h>
-#include <mpi.h>
#include <gc.h>
#include <gnutls_x509.h>
#include <x509_b64.h>
#include <x509_int.h>
-#include <mpi.h>
static int _gnutls_asn1_encode_rsa (ASN1_TYPE * c2, mpi_t * params);
int _gnutls_asn1_encode_dsa (ASN1_TYPE * c2, mpi_t * params);
#include <common.h>
#include <gnutls_x509.h>
#include <x509_b64.h>
-#include <x509_int.h>
+#include "x509_int.h"
#include <pkcs12.h>
-#include <mpi.h>
#include <gnutls_algorithms.h>
#include <gnutls_num.h>
#include <gc.h>
#include <gnutls_str.h>
#include <gnutls_datum.h>
#include <x509_int.h>
-#include <mpi.h>
#include <common.h>
/* Writes the digest information and the digest in a DER encoded
#include <gnutls_sig.h>
#include <gnutls_str.h>
#include <gnutls_datum.h>
-#include <x509_int.h>
-#include <mpi.h>
+#include "x509_int.h"
#include <common.h>
static int _gnutls_verify_certificate2 (gnutls_x509_crt_t cert,
#include <x509_b64.h>
#include <x509_int.h>
#include <libtasn1.h>
-#include <mpi.h>
/**
* gnutls_x509_crt_init - This function initializes a gnutls_x509_crt_t structure
size_t sizeof_policy,
gnutls_datum_t * der_ext);
+/* mpi.c */
+
+int _gnutls_x509_crt_get_mpis (gnutls_x509_crt_t cert,
+ mpi_t * params, int *params_size);
+int _gnutls_x509_read_rsa_params (opaque * der, int dersize, mpi_t * params);
+int _gnutls_x509_read_dsa_pubkey (opaque * der, int dersize, mpi_t * params);
+int _gnutls_x509_read_dsa_params (opaque * der, int dersize, mpi_t * params);
+
+int _gnutls_x509_write_rsa_params (mpi_t * params, int params_size,
+ gnutls_datum_t * der);
+int _gnutls_x509_write_dsa_params (mpi_t * params, int params_size,
+ gnutls_datum_t * der);
+int _gnutls_x509_write_dsa_public_key (mpi_t * params, int params_size,
+ gnutls_datum_t * der);
+
+int _gnutls_x509_read_uint (ASN1_TYPE node, const char *value,
+ unsigned int *ret);
+
+int _gnutls_x509_read_der_int (opaque * der, int dersize, mpi_t* out);
+
+int _gnutls_x509_read_int (ASN1_TYPE node, const char *value,
+ mpi_t * ret_mpi);
+int _gnutls_x509_write_int (ASN1_TYPE node, const char *value, mpi_t mpi,
+ int lz);
+int _gnutls_x509_write_uint32 (ASN1_TYPE node, const char *value,
+ uint32_t num);
+
+int _gnutls_x509_write_sig_params (ASN1_TYPE dst, const char *dst_name,
+ gnutls_pk_algorithm_t pk_algorithm,
+ gnutls_digest_algorithm_t, mpi_t * params,
+ int params_size);
+
#endif
#include <common.h>
#include <gnutls_x509.h>
#include <x509_b64.h>
-#include <x509_int.h>
-#include <mpi.h>
+#include "x509_int.h"
#include <libtasn1.h>
static void disable_optional_stuff (gnutls_x509_crt_t cert);