diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-01-10 00:49:59 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-01-10 00:49:59 +0100 |
commit | d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8 (patch) | |
tree | 8a9c24f5e99acf06bab383f1c798bb0a174317a5 /eurephiadm | |
parent | be9c9cab62dbfe03ff6b2a44b9eefc27e8afd0b4 (diff) | |
download | eurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.tar.gz eurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.tar.xz eurephia-d5c7a4c72731cc36e0e8cf4fd3a6a0811344a4d8.zip |
Moved eDBsessionGetRandString(...) to a more global and independent eurephia_randstring(...) function
Diffstat (limited to 'eurephiadm')
-rw-r--r-- | eurephiadm/CMakeLists.txt | 1 | ||||
-rw-r--r-- | eurephiadm/client_session.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/eurephiadm/CMakeLists.txt b/eurephiadm/CMakeLists.txt index 6e23585..1fa32a8 100644 --- a/eurephiadm/CMakeLists.txt +++ b/eurephiadm/CMakeLists.txt @@ -21,6 +21,7 @@ SET(efw_ipt_SRC ../common/eurephia_xml.c ../common/passwd.c ../common/sha512.c + ../common/randstr.c ../common/certinfo.c ../database/eurephiadb.c ) diff --git a/eurephiadm/client_session.c b/eurephiadm/client_session.c index fa3689d..e4d7dd3 100644 --- a/eurephiadm/client_session.c +++ b/eurephiadm/client_session.c @@ -31,6 +31,7 @@ #include <eurephiadb_session_common.h> #include <eurephiadb_driver.h> #include <eurephia_log.h> +#include <randstr.h> #include <sha512.h> #include "client_config.h" @@ -130,7 +131,7 @@ eurephiaSESSION *create_session(eurephiaCTX *ctx, const char *sesskey) { int i = 0; memset(randdata, 0, 514); - if( !eDBsessionGetRandString(ctx, randdata, 512) ) { + if( !eurephia_randstring(ctx, randdata, 512) ) { eurephia_log(ctx, LOG_FATAL, 0, "Could not generate enough random data for session"); free_nullsafe(randdata); |