Browse Source

disable iv check for rc4

pull/390/head v2.3.1
Max Lv 9 years ago
parent
commit
4daab0e869
1 changed files with 7 additions and 5 deletions
  1. 12
      src/encrypt.c

12
src/encrypt.c

@ -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);
}
}
}

Loading…
Cancel
Save