You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int j = 0;
for (j = 0; strlen(codecParams[j].m_name) > 0; ++j)
{
if (sqlite3_stricmp(cipherName, codecParams[j].m_name) == 0) break;
}
if (strlen(codecParams[j].m_name) > 0)
{
cipherParamTable = codecParams[j].m_params;
}
#endif
int cipherType = CODEC_TYPE;
CipherParams* cipher = cipherParamTable;
for (; strlen(cipher->m_name) > 0; ++cipher)
{
if (sqlite3_stricmp("cipher", cipher->m_name) == 0) break;
}
if (strlen(cipher->m_name) > 0)
{
cipherType = cipher->m_value; cipher->m_value = cipher->m_default; // Why to change value to default value? Specifies cipher at runtime, will cause error when attach database twice or more~
}
return cipherType;
}
The text was updated successfully, but these errors were encountered:
int
GetCipherType(sqlite3* db)
{
CodecParameter* codecParams = (db != NULL) ? GetCodecParams(db) : codecParameterTable;
CipherParams* cipherParamTable = (codecParams != NULL) ? codecParams[0].m_params : commonParams;
#if 0
if (codecParams == NULL)
{
return value;
}
int j = 0;
for (j = 0; strlen(codecParams[j].m_name) > 0; ++j)
{
if (sqlite3_stricmp(cipherName, codecParams[j].m_name) == 0) break;
}
if (strlen(codecParams[j].m_name) > 0)
{
cipherParamTable = codecParams[j].m_params;
}
#endif
int cipherType = CODEC_TYPE;
CipherParams* cipher = cipherParamTable;
for (; strlen(cipher->m_name) > 0; ++cipher)
{
if (sqlite3_stricmp("cipher", cipher->m_name) == 0) break;
}
if (strlen(cipher->m_name) > 0)
{
cipherType = cipher->m_value;
cipher->m_value = cipher->m_default; // Why to change value to default value? Specifies cipher at runtime, will cause error when attach database twice or more~
}
return cipherType;
}
The text was updated successfully, but these errors were encountered: