Merge pull request #2581 from shadowsocks/stream-warning

Warn users when using stream ciphers
This commit is contained in:
Max Lv
2020-01-13 08:01:33 +08:00
committed by GitHub
+1
View File
@@ -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;