CBC mode by default

This commit is contained in:
Pedro de Oliveira 2019-05-26 21:41:24 +01:00
parent d6589c5123
commit b8b9a335a0
1 changed files with 5 additions and 1 deletions

View File

@ -1165,7 +1165,11 @@ void cmd_keyx(const char *data, SERVER_REC * server, WI_ITEM_REC * item)
if ((mode == -1) && (getIniSectionForContact(server, target, contactName))) {
iniValue = allocateIni(contactName, "key", iniPath);
mode = iniValue.cbc;
if (iniValue.iniKeySize == 1) {
mode = 1;
} else {
mode = iniValue.cbc;
}
freeIni(iniValue);
}