1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

sodium_init() doesn't take any options any more.

This commit is contained in:
Frank Denis 2013-04-18 19:14:10 +02:00
parent 8e7bb5d0ce
commit 47bc0aab79
4 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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);

View File

@ -2,10 +2,8 @@
#include "core.h"
int
sodium_init(const sodium_options *options)
sodium_init(void)
{
(void) options;
return 0;
}

View File

@ -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);