Skip to content
Snippets Groups Projects
Commit 2d30d343 authored by Bill Welliver's avatar Bill Welliver
Browse files

windows: need stdint.h for uint*

parent 1aeb9a8d
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
DECLARATIONS DECLARATIONS
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif /* HAVE_STDINT_H */
#include "nettle.h" #include "nettle.h"
#ifdef HAVE_NETTLE_POLY1305_H #ifdef HAVE_NETTLE_POLY1305_H
......
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif /* HAVE_STDINT_H */
DECLARATIONS DECLARATIONS
/*! @module Nettle /*! @module Nettle
......
...@@ -58,16 +58,19 @@ typedef nettle_hash_digest_func pike_nettle_hash_digest_func; ...@@ -58,16 +58,19 @@ typedef nettle_hash_digest_func pike_nettle_hash_digest_func;
typedef nettle_hash_update_func pike_nettle_hash_update_func; typedef nettle_hash_update_func pike_nettle_hash_update_func;
#else #else
/* Nettle 2.0 */ /* Nettle 2.0 */
typedef void (*pike_nettle_crypt_func)(void *ctx,
unsigned length, uint8_t *dst,
const uint8_t *src);
typedef void (*pike_nettle_hash_digest_func)(void *ctx,
unsigned length, uint8_t *dst);
typedef void (*pike_nettle_hash_update_func)(void *ctx,
unsigned length,
const uint8_t *src);
#ifdef dsa_params_init
/* Nettle 3.0 */ /* Nettle 3.0 */
typedef nettle_cipher_func *pike_nettle_crypt_func;
#else
typedef nettle_crypt_func *pike_nettle_crypt_func;
#endif
typedef nettle_hash_digest_func *pike_nettle_hash_digest_func;
typedef nettle_hash_update_func *pike_nettle_hash_update_func;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment