From 51fb8e8f87d85448baa2eb7bbd6a46188fedc0f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 25 Jun 2014 19:05:50 +0200
Subject: [PATCH] Include bignum.h instead of gmp.h.

---
 ChangeLog      | 7 +++++++
 dsa.h          | 3 +--
 ecc-internal.h | 3 +--
 ecc.h          | 3 +--
 gmp-glue.h     | 4 +---
 pkcs1.h        | 2 +-
 rsa.h          | 2 +-
 7 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1b5c4033..820f1bd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2014-06-25  Niels Möller  <nisse@lysator.liu.se>
 
+	* dsa.h: Include bignum.h instead of gmp.h.
+	* ecc-internal.h: Likewise.
+	* ecc.h: Likewise.
+	* gmp-glue.h: Likewise.
+	* pkcs1.h: Likewise.
+	* rsa.h: Likewise.
+
 	* testsuite/testutils.c (die): Use plain vfprintf, not
 	gmp_vfprintf.
 	(write_mpn): New function.
diff --git a/dsa.h b/dsa.h
index aa0a9bb8..7aa982ab 100644
--- a/dsa.h
+++ b/dsa.h
@@ -34,9 +34,8 @@
 #ifndef NETTLE_DSA_H_INCLUDED
 #define NETTLE_DSA_H_INCLUDED
 
-#include <gmp.h>
-
 #include "nettle-types.h"
+#include "bignum.h"
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/ecc-internal.h b/ecc-internal.h
index a294e6cc..3d284bd6 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -34,9 +34,8 @@
 #ifndef NETTLE_ECC_INTERNAL_H_INCLUDED
 #define NETTLE_ECC_INTERNAL_H_INCLUDED
 
-#include <gmp.h>
-
 #include "nettle-types.h"
+#include "bignum.h"
 #include "ecc-curve.h"
 #include "gmp-glue.h"
 
diff --git a/ecc.h b/ecc.h
index 0097c5f1..7293186b 100644
--- a/ecc.h
+++ b/ecc.h
@@ -34,9 +34,8 @@
 #ifndef NETTLE_ECC_H_INCLUDED
 #define NETTLE_ECC_H_INCLUDED
 
-#include <gmp.h>
-
 #include "nettle-types.h"
+#include "bignum.h"
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/gmp-glue.h b/gmp-glue.h
index f4144a92..69663de6 100644
--- a/gmp-glue.h
+++ b/gmp-glue.h
@@ -33,9 +33,7 @@
 #ifndef NETTLE_GMP_GLUE_H_INCLUDED
 #define NETTLE_GMP_GLUE_H_INCLUDED
 
-#include <gmp.h>
-
-#include "nettle-stdint.h"
+#include "bignum.h"
 
 #ifdef mpz_limbs_read
 #define GMP_HAVE_mpz_limbs_read 1
diff --git a/pkcs1.h b/pkcs1.h
index b766eb70..70aa21f1 100644
--- a/pkcs1.h
+++ b/pkcs1.h
@@ -34,8 +34,8 @@
 #ifndef NETTLE_PKCS1_H_INCLUDED
 #define NETTLE_PKCS1_H_INCLUDED
 
-#include <gmp.h>
 #include "nettle-types.h"
+#include "bignum.h"
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/rsa.h b/rsa.h
index c0398627..44d4af94 100644
--- a/rsa.h
+++ b/rsa.h
@@ -34,8 +34,8 @@
 #ifndef NETTLE_RSA_H_INCLUDED
 #define NETTLE_RSA_H_INCLUDED
 
-#include <gmp.h>
 #include "nettle-types.h"
+#include "bignum.h"
 
 #include "md5.h"
 #include "sha1.h"
-- 
GitLab