mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
sodium_reinit() and sodium_shutdown() are gone.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,5 @@
|
||||
#define __SODIUM_CORE_H__
|
||||
|
||||
int sodium_init(void);
|
||||
int sodium_reinit(void);
|
||||
void sodium_shutdown(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,15 +16,3 @@ sodium_init(void)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
sodium_reinit(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
sodium_shutdown(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -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 ")");
|
||||
|
||||
Reference in New Issue
Block a user