#include <stdlib.h>
#include <string.h>
-#if HAVE_LIBGMP
-# include "bignum.h"
-# include "pgp.h"
-#else /* !HAVE_LIBGMP */
-/* Kludge to make it possible to include pgp.h */
-# define mpz_t int
-# include "pgp.h"
-# undef mpz_t
-#endif /* !HAVE_LIBGMP */
-
-#if WITH_PUBLIC_KEY
-# include "rsa.h"
-#endif
+#include "pgp.h"
#include "base64.h"
#include "buffer.h"
#include "macros.h"
+#include "rsa.h"
int
pgp_put_uint32(struct nettle_buffer *buffer, uint32_t i)
return 1;
}
-#if HAVE_LIBGMP
int
pgp_put_mpi(struct nettle_buffer *buffer, const mpz_t x)
{
return 1;
}
-#endif
int
pgp_put_string(struct nettle_buffer *buffer,
WRITE_UINT32(buffer->contents + start - 2, length);
}
-#if WITH_PUBLIC_KEY
int
pgp_put_public_rsa_key(struct nettle_buffer *buffer,
const struct rsa_public_key *pub,
return 1;
}
-#endif /* WITH_PUBLIC_KEY */
#define CRC24_INIT 0x0b704ceL
#define CRC24_POLY 0x1864cfbL
#include <time.h>
#include "nettle-types.h"
-
-/* FIXME: User must include bignum.h before this file, in order to get
- mpz_t defined. We don't do that here, in order to kludge through
- compilation without public key support and without gmp.h. */
+#include "bignum.h"
#ifdef __cplusplus
extern "C" {