mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
sodium_init() doesn't take any options any more.
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ A convenience header includes everything you need to use the library:
|
||||
|
||||
Before doing anything else with the library, call:
|
||||
|
||||
sodium_init(NULL);
|
||||
sodium_init();
|
||||
|
||||
And if you need to release memory and other resources possibly
|
||||
allocated by the library, call:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
typedef struct sodium_options sodium_options;
|
||||
|
||||
int sodium_init(const sodium_options *options);
|
||||
int sodium_init(void);
|
||||
int sodium_reinit(void);
|
||||
void sodium_shutdown(void);
|
||||
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
#include "core.h"
|
||||
|
||||
int
|
||||
sodium_init(const sodium_options *options)
|
||||
sodium_init(void)
|
||||
{
|
||||
(void) options;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,9 @@ int main(void)
|
||||
perror("fopen(" TEST_NAME_RES ")");
|
||||
return 99;
|
||||
}
|
||||
sodium_init(NULL);
|
||||
if (sodium_init() != 0) {
|
||||
return 99;
|
||||
}
|
||||
xmain();
|
||||
sodium_shutdown();
|
||||
rewind(fp_res);
|
||||
|
||||
Reference in New Issue
Block a user