mirror of
https://github.com/zhigang1992/shadowsocks-iOS.git
synced 2026-04-23 20:40:07 +08:00
catch web server exceptions; use less CPU
This commit is contained in:
@@ -14,8 +14,6 @@ typedef enum {
|
||||
|
||||
struct encryption_ctx {
|
||||
EVP_CIPHER_CTX* ctx;
|
||||
EncryptionMethod method;
|
||||
const char* password;
|
||||
uint8_t status;
|
||||
};
|
||||
|
||||
@@ -31,5 +29,7 @@ void decrypt_buf(struct encryption_ctx* ctx, char *buf, int *len);
|
||||
int send_encrypt(struct encryption_ctx* ctx, int sock, char *buf, int *len, int flags);
|
||||
int recv_decrypt(struct encryption_ctx* ctx, int sock, char *buf, int *len, int flags);
|
||||
|
||||
void init_encryption(struct encryption_ctx* ctx, const char *password, const char *method);
|
||||
void init_encryption(struct encryption_ctx* ctx);
|
||||
void cleanup_encryption(struct encryption_ctx* ctx);
|
||||
|
||||
void config_encryption(const char *password, const char *method);
|
||||
|
||||
Reference in New Issue
Block a user