3 @@ -111,7 +111,7 @@ int client_do_local_read(int sockfd, str
7 - if (encrypt(sockfd, ln) == -1)
8 + if (crypto_encrypt(sockfd, ln) == -1)
11 ret = do_send(ln->server_sockfd, ln, "cipher", 0);
12 @@ -172,7 +172,7 @@ int client_do_server_read(int sockfd, st
16 - if (decrypt(sockfd, ln) == -1)
17 + if (crypto_decrypt(sockfd, ln) == -1)
20 if (ln->state & SS_UDP) {
23 @@ -185,7 +185,7 @@ err:
27 -int encrypt(int sockfd, struct link *ln)
28 +int crypto_encrypt(int sockfd, struct link *ln)
31 EVP_CIPHER_CTX *ctx_p;
32 @@ -223,7 +223,7 @@ err:
36 -int decrypt(int sockfd, struct link *ln)
37 +int crypto_decrypt(int sockfd, struct link *ln)
40 EVP_CIPHER_CTX *ctx_p;
43 @@ -15,7 +15,7 @@ extern int iv_len;
45 int crypto_init(char *key, char *method);
46 void crypto_exit(void);
47 -int encrypt(int sockfd, struct link *ln);
48 -int decrypt(int sockfd, struct link *ln);
49 +int crypto_encrypt(int sockfd, struct link *ln);
50 +int crypto_decrypt(int sockfd, struct link *ln);
55 @@ -36,7 +36,7 @@ int server_do_remote_read(int sockfd, st
59 - if (encrypt(sockfd, ln) == -1)
60 + if (crypto_encrypt(sockfd, ln) == -1)
63 ret = do_send(ln->local_sockfd, ln, "cipher", 0);
64 @@ -91,7 +91,7 @@ int server_do_local_read(int sockfd, str
68 - if (decrypt(sockfd, ln) == -1)
69 + if (crypto_decrypt(sockfd, ln) == -1)
72 if (ln->state & SS_UDP) {