summaryrefslogtreecommitdiffstats
path: root/plugin/eurephia.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-01-10 00:49:59 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-01-10 00:49:59 +0100
commitd5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8 (patch)
tree8a9c24f5e99acf06bab383f1c798bb0a174317a5 /plugin/eurephia.c
parentbe9c9cab62dbfe03ff6b2a44b9eefc27e8afd0b4 (diff)
downloadeurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.tar.gz
eurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.tar.xz
eurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.zip
Moved eDBsessionGetRandString(...) to a more global and independent eurephia_randstring(...) function
Diffstat (limited to 'plugin/eurephia.c')
-rw-r--r--plugin/eurephia.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c
index b04af5e..cf0fce9 100644
--- a/plugin/eurephia.c
+++ b/plugin/eurephia.c
@@ -34,6 +34,7 @@
#include <eurephiadb_session_common.h>
#include <eurephiadb_session.h>
#include <certinfo.h>
+#include <randstr.h>
#include <passwd.h>
#define MAX_ARGUMENTS 64
@@ -197,7 +198,7 @@ eurephiaCTX *eurephiaInit(const char **argv)
// Get data for server_salt - which will be used for the password cache
ctx->server_salt = (char *) malloc(SIZE_PWDCACHE_SALT+2);
memset(ctx->server_salt, 0, SIZE_PWDCACHE_SALT+2);
- if( !eDBsessionGetRandString(ctx, ctx->server_salt, SIZE_PWDCACHE_SALT) ) {
+ if( !eurephia_randstring(ctx, ctx->server_salt, SIZE_PWDCACHE_SALT) ) {
eurephia_log(ctx, LOG_PANIC, 0 , "Could not get enough random data for password cache.");
free_nullsafe(ctx->server_salt);