diff --git a/out/locale/en/LC_MESSAGES/default.po b/out/locale/en/LC_MESSAGES/default.po index 4de95a8c..d621b168 100644 --- a/out/locale/en/LC_MESSAGES/default.po +++ b/out/locale/en/LC_MESSAGES/default.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: HeidiSQL\n" "POT-Creation-Date: 2012-11-05 21:40\n" -"PO-Revision-Date: 2025-01-11 15:44+0100\n" +"PO-Revision-Date: 2025-01-26 16:03+0100\n" "Last-Translator: Ansgar Becker \n" "Language-Team: English (http://www.transifex.com/projects/p/heidisql/language/en/)\n" "Language: en\n" @@ -6709,6 +6709,9 @@ msgstr "Warning: Configuring with cipher index %d failed" msgid "Warning: Failed to set cipher encryption parameter \"%s\"" msgstr "Warning: Failed to set cipher encryption parameter \"%s\"" +msgid "Info: Cipher encryption parameter \"%s\" set" +msgstr "Info: Cipher encryption parameter \"%s\" set" + msgid "You have activated encryption on a probably non-encrypted database." msgstr "You have activated encryption on a probably non-encrypted database." diff --git a/source/dbconnection.pas b/source/dbconnection.pas index d3a01c04..f759c9d7 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -3008,9 +3008,10 @@ begin if Parameters.NetType = ntSQLiteEncrypted then begin // Use encryption key CipherIndex := FLib.sqlite3mc_cipher_index(PAnsiChar(AnsiString(Parameters.Username))); + //Log(lcinfo, 'CipherIndex:'+CipherIndex.ToString); if CipherIndex = -1 then raise EDbError.Create(f_('Warning: Given cipher scheme name "%s" could not be found', [Parameters.Username])); - ConfigResult := FLib.sqlite3mc_config(FHandle, PAnsiChar('cipher'), CipherIndex); + ConfigResult := FLib.sqlite3mc_config(FHandle, PAnsiChar('default:cipher'), CipherIndex); if ConfigResult = -1 then raise EDbError.Create(f_('Warning: Configuring with cipher index %d failed', [CipherIndex])); // Set encryption parameters: @@ -3033,9 +3034,10 @@ begin ParamWasSet := True; end end; - if not ParamWasSet then begin - Log(lcError, f_('Warning: Failed to set cipher encryption parameter "%s"', [Param])); - end; + if not ParamWasSet then + Log(lcError, f_('Warning: Failed to set cipher encryption parameter "%s"', [Param])) + else + Log(lcInfo, f_('Info: Cipher encryption parameter "%s" set', [Param])); end; // Set the main database key RawPassword := AnsiString(Parameters.Password);