mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 07:30:02 +00:00
Refine ss_align interfaces
This commit is contained in:
+2
-2
@@ -1415,8 +1415,8 @@ new_server(int fd, listen_ctx_t *listener)
|
||||
server->listen_ctx = listener;
|
||||
server->remote = NULL;
|
||||
|
||||
server->e_ctx = ss_align(sizeof(cipher_ctx_t));
|
||||
server->d_ctx = ss_align(sizeof(cipher_ctx_t));
|
||||
server->e_ctx = ss_malloc(sizeof(cipher_ctx_t));
|
||||
server->d_ctx = ss_malloc(sizeof(cipher_ctx_t));
|
||||
crypto->ctx_init(crypto->cipher, server->e_ctx, 1);
|
||||
crypto->ctx_init(crypto->cipher, server->d_ctx, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user