Skip to content

Commit

Permalink
Merge pull request #2581 from shadowsocks/stream-warning
Browse files Browse the repository at this point in the history
Warn users when using stream ciphers
  • Loading branch information
madeye authored Jan 13, 2020
2 parents 72d7d92 + 80b887d commit 6b5025b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ crypto_init(const char *password, const char *key, const char *method)
break;
}
if (m != -1) {
LOGI("Stream ciphers are insecure, therefore deprecated, and should be almost always avoided.");
cipher_t *cipher = stream_init(password, key, method);
if (cipher == NULL)
return NULL;
Expand Down

0 comments on commit 6b5025b

Please sign in to comment.