[Pvfs2-cvs] commit by dbonnie in pvfs2/src/common/security:
pint-security.c
CVS commit program
cvs at parl.clemson.edu
Thu May 15 11:03:05 EDT 2008
Update of /anoncvs/pvfs2/src/common/security
In directory parlweb1:/tmp/cvs-serv8983/src/common/security
Modified Files:
Tag: cu-security-branch
pint-security.c
Log Message:
Added hash init/finalize routines to external init/finalize.
Index: pint-security.c
===================================================================
RCS file: /anoncvs/pvfs2/src/common/security/Attic/pint-security.c,v
diff -p -u -r1.1.2.2 -r1.1.2.3
--- pint-security.c 14 May 2008 21:40:40 -0000 1.1.2.2
+++ pint-security.c 15 May 2008 15:03:05 -0000 1.1.2.3
@@ -21,6 +21,7 @@
#include "gossip.h"
#include "gen-locks.h"
#include "pint-security.h"
+#include "security-hash.h"
/* TODO: move to global configuration */
@@ -30,8 +31,6 @@
static gen_mutex_t security_init_mutex = GEN_MUTEX_INITIALIZER;
static int security_init_status = 0;
-static gen_mutex_t pubkey_mutex = GEN_MUTEX_INITIALIZER;
-
static int load_public_keys(char*);
@@ -49,6 +48,9 @@ int PINT_security_initialize(void)
OpenSSL_add_all_algorithms();
/* TODO: return value */
+ if (SECURITY_hash_initialize() == -1)
+ return -1;
+
load_public_keys(SECURITY_DEFAULT_KEYSTORE);
security_init_status = 1;
@@ -68,6 +70,7 @@ int PINT_security_finalize(void)
EVP_cleanup();
ERR_free_strings();
+ SECURITY_hash_finalize();
security_init_status = 0;
gen_mutex_unlock(&security_init_mutex);
More information about the Pvfs2-cvs
mailing list