You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
836 B

  1. From d71b3138cbdc3852c96a2639995f2d7f44b1c76c Mon Sep 17 00:00:00 2001
  2. From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
  3. Date: Sat, 29 Mar 2014 09:12:41 +0100
  4. Subject: [PATCH 5/5] allow der-iterator to be used with mini-gmp
  5. ---
  6. der-iterator.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/der-iterator.c b/der-iterator.c
  9. index 2e6efd5..5ab15b9 100644
  10. --- a/der-iterator.c
  11. +++ b/der-iterator.c
  12. @@ -30,7 +30,7 @@
  13. #include <assert.h>
  14. #include <stdlib.h>
  15. -#if HAVE_LIBGMP
  16. +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
  17. #include "bignum.h"
  18. #endif
  19. @@ -246,7 +246,7 @@ asn1_der_get_uint32(struct asn1_der_iterator *i,
  20. return 1;
  21. }
  22. -#if HAVE_LIBGMP
  23. +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
  24. int
  25. asn1_der_get_bignum(struct asn1_der_iterator *i,
  26. mpz_t x, unsigned max_bits)
  27. --
  28. 1.9.2