mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-23 08:03:54 +00:00
disable iv check for rc4
This commit is contained in:
+7
-5
@@ -1276,11 +1276,13 @@ char * ss_decrypt(int buf_size, char *ciphertext, ssize_t *len,
|
||||
ctx->counter = 0;
|
||||
ctx->init = 1;
|
||||
|
||||
if (cache_key_exist(iv_cache, (char *)iv, iv_len)) {
|
||||
free(ciphertext);
|
||||
return NULL;
|
||||
} else {
|
||||
cache_insert(iv_cache, (char *)iv, iv_len, NULL);
|
||||
if (enc_method >= RC4_MD5) {
|
||||
if (cache_key_exist(iv_cache, (char *)iv, iv_len)) {
|
||||
free(ciphertext);
|
||||
return NULL;
|
||||
} else {
|
||||
cache_insert(iv_cache, (char *)iv, iv_len, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user