Commit 31e72046 authored by Niels Möller's avatar Niels Möller
Browse files

* Changed include file ordering, to follow the same conventions as

lsh and nettle: .c-files include config.h first, then system
files, and finally spki files. .h-files never include config.h,
and they include system files before spki files.

Rev: src/spki/ChangeLog:1.63
Rev: src/spki/certificate.c:1.28
Rev: src/spki/configure.ac:1.8
Rev: src/spki/names.c:1.3
Rev: src/spki/parse.c:1.19
Rev: src/spki/parse.h:1.18
Rev: src/spki/reduce.c:1.5
Rev: src/spki/tag.c:1.14
Rev: src/spki/tools/misc.c:1.3
Rev: src/spki/tools/spki-check-signature.c:1.5
Rev: src/spki/tools/spki-make-signature.c:1.5
Rev: src/spki/verify.c:1.4
parent 8f0bd912
2003-05-18 Niels Mller <nisse@cuckoo.hack.org>
* Changed include file ordering, to follow the same conventions as
lsh and nettle: .c-files include config.h first, then system
files, and finally spki files. .h-files never include config.h,
and they include system files before spki files.
* configure.ac: Use LSH_FUNC_ALLOCA.
2003-04-11 Niels Mller <nisse@cuckoo.hack.org>
* testsuite/Makefile.am (distclean-local, CLEANFILES): Delete
......
......@@ -24,17 +24,17 @@
# include "config.h"
#endif
#include "certificate.h"
#include "parse.h"
#include "tag.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "nettle/md5.h"
#include "nettle/sha.h"
#include "nettle/sexp.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "certificate.h"
#include "parse.h"
#include "tag.h"
void
spki_acl_init(struct spki_acl_db *db)
......
......@@ -46,6 +46,8 @@ AC_TYPE_UID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
LSH_FUNC_ALLOCA
# Needed by the supplied memcmp.c
AC_C_BIGENDIAN
......
/* certificate.h */
/* names.c */
/* libspki
*
......
......@@ -24,13 +24,13 @@
# include "config.h"
#endif
#include "parse.h"
#include "tag.h"
#include <assert.h>
#include <string.h>
#include "nettle/sexp.h"
#include <assert.h>
#include <string.h>
#include "parse.h"
#include "tag.h"
/* Automatically generated files */
......
......@@ -23,10 +23,10 @@
#ifndef LIBSPKI_PARSE_H_INCLUDED
#define LIBSPKI_PARSE_H_INCLUDED
#include "certificate.h"
#include "nettle/sexp.h"
#include "certificate.h"
struct spki_iterator
{
/* When a parsing function is invoked, the sexp_iterator points into
......
......@@ -24,13 +24,13 @@
# include "config.h"
#endif
#include "certificate.h"
#include "tag.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "certificate.h"
#include "tag.h"
static void
validity_sanity_check(const struct spki_5_tuple *tuple)
......
......@@ -22,15 +22,19 @@
* MA 02111-1307, USA.
*/
#include "tag.h"
#include "nettle/buffer.h"
#include "nettle/sexp.h"
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "nettle/buffer.h"
#include "nettle/sexp.h"
#include "tag.h"
/* Memory allocation */
#define MALLOC(ctx, realloc, size) realloc((ctx), NULL, (size))
......
......@@ -20,11 +20,15 @@
* MA 02111-1307, USA.
*/
#include "misc.h"
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdarg.h>
#include <stdlib.h>
#include "misc.h"
void *
xalloc(size_t size)
{
......
......@@ -20,16 +20,20 @@
* MA 02111-1307, USA.
*/
#include "certificate.h"
#include "parse.h"
#include "misc.h"
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "certificate.h"
#include "parse.h"
#include "getopt.h"
#include "misc.h"
static void
usage(void)
......
......@@ -20,19 +20,23 @@
* MA 02111-1307, USA.
*/
#include "certificate.h"
#include "parse.h"
#include "misc.h"
#include "sign.h"
#include <nettle/rsa.h>
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <nettle/rsa.h>
#include "certificate.h"
#include "parse.h"
#include "getopt.h"
#include "misc.h"
#include "sign.h"
static void
usage(void)
......
......@@ -24,13 +24,13 @@
# include "config.h"
#endif
#include "certificate.h"
#include "parse.h"
#include "nettle/bignum.h"
#include "nettle/dsa.h"
#include "nettle/rsa.h"
#include "certificate.h"
#include "parse.h"
#define RSA_KEYSIZE_LIMIT 3000
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment