Refine ss_align interfaces

This commit is contained in:
Max Lv
2019-01-22 12:59:29 +08:00
parent fbb311ed06
commit 782311ad2b
7 changed files with 21 additions and 13 deletions
+2 -2
View File
@@ -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);