pike.git / src / post_modules / Nettle / nettle.h

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.h:46: Inside #if defined(dsa_params_init)
   * it was unsigned.    */   typedef size_t pike_nettle_size_t;   #else   typedef unsigned pike_nettle_size_t;   #endif      /* In Nettle 2.0 the nettle_*_func typedefs lost their pointers. */   #ifdef HAVE_NETTLE_CRYPT_FUNC_IS_POINTER   /* Nettle 1.x */ - typedef nettle_crypt_func pike_nettle_crypt_func; - typedef nettle_hash_digest_func pike_nettle_hash_digest_func; - typedef nettle_hash_update_func pike_nettle_hash_update_func; + typedef nettle_crypt_func pike_nettle_crypt_func; + typedef nettle_hash_digest_func pike_nettle_hash_digest_func; + typedef nettle_hash_update_func pike_nettle_hash_update_func;   #else   /* 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 */ -  + 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         char *pike_crypt_md5(int pl, const char *const pw,    int sl, const char *const salt,    int ml, const char *const magic);      void hash_init(void);      void hash_exit(void);