mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-23 08:03:54 +00:00
drop redundant sodium_init() call
It is done in crypto.c Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
This commit is contained in:
@@ -693,11 +693,6 @@ aead_key_init(int method, const char *pass, const char *key)
|
||||
cipher_t *cipher = (cipher_t *)ss_malloc(sizeof(cipher_t));
|
||||
memset(cipher, 0, sizeof(cipher_t));
|
||||
|
||||
// Initialize sodium for random generator
|
||||
if (sodium_init() == -1) {
|
||||
FATAL("Failed to initialize sodium");
|
||||
}
|
||||
|
||||
if (method >= CHACHA20POLY1305IETF) {
|
||||
cipher_kt_t *cipher_info = (cipher_kt_t *)ss_malloc(sizeof(cipher_kt_t));
|
||||
cipher->info = cipher_info;
|
||||
|
||||
Reference in New Issue
Block a user