From fc98102f2a8150500e7f4316c0d11645651f9019 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 19 Apr 2013 14:21:40 +0200 Subject: [PATCH] sodium_reinit() and sodium_shutdown() are gone. --- README.markdown | 9 --------- src/libsodium/include/sodium/core.h | 2 -- src/libsodium/sodium/core.c | 12 ------------ test/default/cmptest.h | 1 - 4 files changed, 24 deletions(-) diff --git a/README.markdown b/README.markdown index f6426303..d0311dae 100644 --- a/README.markdown +++ b/README.markdown @@ -80,15 +80,6 @@ Before doing anything else with the library, call: This function is not thread-safe. No other Sodium functions should be called until it successfully returns. -And if you need to release memory and other resources possibly -allocated by the library, call: - - sodium_shutdown(); - -After fork()ing, call: - - sodium_reinit(); - Sodium also provides helper functions to generate random numbers, leveraging `/dev/urandom` or `/dev/random` on *nix and the cryptographic service provider on Windows. The interface is similar to diff --git a/src/libsodium/include/sodium/core.h b/src/libsodium/include/sodium/core.h index 005f995f..c2c5ae5e 100644 --- a/src/libsodium/include/sodium/core.h +++ b/src/libsodium/include/sodium/core.h @@ -3,7 +3,5 @@ #define __SODIUM_CORE_H__ int sodium_init(void); -int sodium_reinit(void); -void sodium_shutdown(void); #endif diff --git a/src/libsodium/sodium/core.c b/src/libsodium/sodium/core.c index 84fad58e..765b2937 100644 --- a/src/libsodium/sodium/core.c +++ b/src/libsodium/sodium/core.c @@ -16,15 +16,3 @@ sodium_init(void) } return 0; } - -int -sodium_reinit(void) -{ - return 0; -} - -void -sodium_shutdown(void) -{ - -} diff --git a/test/default/cmptest.h b/test/default/cmptest.h index ba6874c9..45dbc5da 100644 --- a/test/default/cmptest.h +++ b/test/default/cmptest.h @@ -25,7 +25,6 @@ int main(void) return 99; } xmain(); - sodium_shutdown(); rewind(fp_res); if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) { perror("fopen(" TEST_NAME_OUT ")");