pike.git/
src/
post_modules/
Nettle/
nettle.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:25:55 by Martin Nilsson <nilsson@opera.com>
4df6497d2e561f8fc16be9a78014710f6bf780c0 (
13
lines) (+
13
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Using the nettle_dsa_params_init as 3.0 indicator appears safer to me than a compat header file.
19:
#define THREADS_ALLOW_THRESHOLD (1024 * 1024)
+
#ifdef HAVE_NETTLE_DSA_PARAMS_INIT
+
/* We use the presence of <nettle/dsa-compat.h> to
+
* detect Nettle 3.0 or later.
+
*/
+
+
/* In Nettle 3.0 length fields use size_t, where earlier it was unsigned. */
+
typedef size_t pike_nettle_size_t;
+
#else
+
typedef unsigned pike_nettle_size_t;
+
#endif
+
+
char *pike_crypt_md5(int pl, const char *const pw, int sl, const char *const salt, int ml, const char *const magic);