summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2014-01-09 11:44:24 +0000
committerPeter Eisentraut2014-01-09 11:44:24 +0000
commit10a3b165a32e9dd116ba340dd2d2f8c77895418e (patch)
treee46962149869629ea8c030b46222a8dabecf53df
parent220b34331f77effdb46798ddd7cca0cffc1b2858 (diff)
pgcrypto: Make header files stand alone
pgp.h used to require including mbuf.h and px.h first. Include those in pgp.h, so that it can be used without prerequisites. Remove mbuf.h inclusions in .c files where mbuf.h features are not used directly. (px.h was always used.)
-rw-r--r--contrib/pgcrypto/pgp-armor.c1
-rw-r--r--contrib/pgcrypto/pgp-cfb.c1
-rw-r--r--contrib/pgcrypto/pgp-compress.c1
-rw-r--r--contrib/pgcrypto/pgp-mpi-internal.c1
-rw-r--r--contrib/pgcrypto/pgp-mpi-openssl.c1
-rw-r--r--contrib/pgcrypto/pgp-mpi.c1
-rw-r--r--contrib/pgcrypto/pgp-pubdec.c1
-rw-r--r--contrib/pgcrypto/pgp-pubenc.c1
-rw-r--r--contrib/pgcrypto/pgp-s2k.c1
-rw-r--r--contrib/pgcrypto/pgp.c1
-rw-r--r--contrib/pgcrypto/pgp.h3
11 files changed, 3 insertions, 10 deletions
diff --git a/contrib/pgcrypto/pgp-armor.c b/contrib/pgcrypto/pgp-armor.c
index 87adf91125..8460bf924a 100644
--- a/contrib/pgcrypto/pgp-armor.c
+++ b/contrib/pgcrypto/pgp-armor.c
@@ -32,7 +32,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
/*
diff --git a/contrib/pgcrypto/pgp-cfb.c b/contrib/pgcrypto/pgp-cfb.c
index 7cf9bf0b8c..d230bcb49e 100644
--- a/contrib/pgcrypto/pgp-cfb.c
+++ b/contrib/pgcrypto/pgp-cfb.c
@@ -31,7 +31,6 @@
#include "postgres.h"
-#include "mbuf.h"
#include "px.h"
#include "pgp.h"
diff --git a/contrib/pgcrypto/pgp-compress.c b/contrib/pgcrypto/pgp-compress.c
index c592453402..edd8255f6a 100644
--- a/contrib/pgcrypto/pgp-compress.c
+++ b/contrib/pgcrypto/pgp-compress.c
@@ -31,7 +31,6 @@
#include "postgres.h"
-#include "mbuf.h"
#include "px.h"
#include "pgp.h"
diff --git a/contrib/pgcrypto/pgp-mpi-internal.c b/contrib/pgcrypto/pgp-mpi-internal.c
index d0e5830fe0..6057dcd88c 100644
--- a/contrib/pgcrypto/pgp-mpi-internal.c
+++ b/contrib/pgcrypto/pgp-mpi-internal.c
@@ -33,7 +33,6 @@
#include "imath.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
static mpz_t *
diff --git a/contrib/pgcrypto/pgp-mpi-openssl.c b/contrib/pgcrypto/pgp-mpi-openssl.c
index ed41e1151c..57acfa0f17 100644
--- a/contrib/pgcrypto/pgp-mpi-openssl.c
+++ b/contrib/pgcrypto/pgp-mpi-openssl.c
@@ -33,7 +33,6 @@
#include <openssl/bn.h>
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
static BIGNUM *
diff --git a/contrib/pgcrypto/pgp-mpi.c b/contrib/pgcrypto/pgp-mpi.c
index c8765b6d14..27ebd84cca 100644
--- a/contrib/pgcrypto/pgp-mpi.c
+++ b/contrib/pgcrypto/pgp-mpi.c
@@ -31,7 +31,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
int
diff --git a/contrib/pgcrypto/pgp-pubdec.c b/contrib/pgcrypto/pgp-pubdec.c
index fe5fae0c42..69b1ab3491 100644
--- a/contrib/pgcrypto/pgp-pubdec.c
+++ b/contrib/pgcrypto/pgp-pubdec.c
@@ -31,7 +31,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
/*
diff --git a/contrib/pgcrypto/pgp-pubenc.c b/contrib/pgcrypto/pgp-pubenc.c
index 943d2e49f5..130d379a8a 100644
--- a/contrib/pgcrypto/pgp-pubenc.c
+++ b/contrib/pgcrypto/pgp-pubenc.c
@@ -31,7 +31,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
/*
diff --git a/contrib/pgcrypto/pgp-s2k.c b/contrib/pgcrypto/pgp-s2k.c
index 349234e243..f7066bff95 100644
--- a/contrib/pgcrypto/pgp-s2k.c
+++ b/contrib/pgcrypto/pgp-s2k.c
@@ -32,7 +32,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
static int
diff --git a/contrib/pgcrypto/pgp.c b/contrib/pgcrypto/pgp.c
index b8a6bc49b4..059c04af8f 100644
--- a/contrib/pgcrypto/pgp.c
+++ b/contrib/pgcrypto/pgp.c
@@ -32,7 +32,6 @@
#include "postgres.h"
#include "px.h"
-#include "mbuf.h"
#include "pgp.h"
/*
diff --git a/contrib/pgcrypto/pgp.h b/contrib/pgcrypto/pgp.h
index 3022abf75d..f856e0733c 100644
--- a/contrib/pgcrypto/pgp.h
+++ b/contrib/pgcrypto/pgp.h
@@ -29,6 +29,9 @@
* contrib/pgcrypto/pgp.h
*/
+#include "mbuf.h"
+#include "px.h"
+
enum PGP_S2K_TYPE
{
PGP_S2K_SIMPLE = 0,