From ec593a7852830ecbc49e270f92b440b119421934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 25 Jun 2014 18:28:51 +0200 Subject: [PATCH] Deleted HAVE_LIBGMP conditionals. --- ChangeLog | 4 ++++ der-iterator.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb3ffc72..2847f6ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-06-25 Niels Möller <nisse@lysator.liu.se> + + * der-iterator.c: Deleted HAVE_LIBGMP conditionals. + 2014-06-07 Niels Möller <nisse@lysator.liu.se> * Released nettle-3.0 diff --git a/der-iterator.c b/der-iterator.c index 76bfdcc5..8c195c00 100644 --- a/der-iterator.c +++ b/der-iterator.c @@ -38,9 +38,7 @@ #include <assert.h> #include <stdlib.h> -#if HAVE_LIBGMP #include "bignum.h" -#endif #include "asn1.h" @@ -254,7 +252,9 @@ asn1_der_get_uint32(struct asn1_der_iterator *i, return 1; } -#if HAVE_LIBGMP +/* NOTE: This is the only function in this file which needs bignums. + One could split this file in two, one in libnettle and one in + libhogweed. */ int asn1_der_get_bignum(struct asn1_der_iterator *i, mpz_t x, unsigned max_bits) @@ -277,4 +277,3 @@ asn1_der_get_bignum(struct asn1_der_iterator *i, return 1; } -#endif /* HAVE_LIBGMP */ -- GitLab