pike.git
/
src
/
post_modules
/
Nettle
/
nettle.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/nettle.cmod:1:
/* nettle.cmod -*- c -*- */ #include "global.h"
-
RCSID("$Id: nettle.cmod,v 1.
34
2004/
02
/
21
02
:
20
:
09
nilsson
Exp $");
+
RCSID("$Id: nettle.cmod,v 1.
35
2004/
03
/
20
12
:
51
:
13
grubba
Exp $");
#include "interpret.h" #include "svalue.h" /* For this_object() */ #include "object.h" #include "operators.h" #include "module_support.h" #include "threads.h" #include "nettle_config.h"
pike.git/src/post_modules/Nettle/nettle.cmod:202:
EXIT { /* It's ok to call free(NULL); */ free(THIS->sources); } } /*! @endclass */
-
char *crypt_md5(int pl, const char *pw, int sl, const char *salt);
-
+
/*! @decl string crypt_md5(string password, string salt) *! Does the crypt_md5 abrakadabra (MD5 + snakeoil). *! It is assumed that @[salt] does not contain "$". */ PIKEFUN string crypt_md5(string pw, string salt) optflags OPT_TRY_OPTIMIZE; { char *hash; NO_WIDE_STRING(pw); NO_WIDE_STRING(salt); THREADS_ALLOW();
-
hash = crypt_md5(pw->len, pw->str,salt->len, salt->str);
+
hash =
pike_
crypt_md5(pw->len, pw->str,salt->len, salt->str);
THREADS_DISALLOW(); push_text(hash); } static const char *crypto_functions[] = { "block_size", "key_size", "set_encrypt_key", "set_decrypt_key",