Fossil

Check-in [980fdda6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make the glob pattern for encrypted repositories a bit more strict.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 980fdda64b30a1d7f4d50942ce7c9dc3ed27c096
User & Date: mistachkin 2016-04-25 04:13:18.758
Context
2016-04-28
14:32
Fix (harmless) mingw compiler warning src/vfile.c: variables ‘currentPerm’ and ‘origPerm’ set but not used [-Wunused-but-set-variable] ... (check-in: c2000668 user: jan.nijtmans tags: trunk)
2016-04-25
04:13
Make the glob pattern for encrypted repositories a bit more strict. ... (check-in: 980fdda6 user: mistachkin tags: trunk)
2016-04-22
20:06
Never prompt for the encryption password, regardless of the repository name, unless the USE_SEE compile-time option was specified. ... (check-in: 60026ba3 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
*/
static void db_encryption_key(
  const char *zDbFile,   /* Name of the database file */
  Blob *pKey             /* Put the encryption key here */
){
  blob_init(pKey, 0, 0);
#if USE_SEE
  if( sqlite3_strglob("*efossil", zDbFile)==0 ){
    static char *zSavedKey = 0;
    if( zSavedKey ){
      blob_set(pKey, zSavedKey);
    }else{
      char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile);
      prompt_for_password(zPrompt, pKey, 0);
      fossil_free(zPrompt);







|







880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
*/
static void db_encryption_key(
  const char *zDbFile,   /* Name of the database file */
  Blob *pKey             /* Put the encryption key here */
){
  blob_init(pKey, 0, 0);
#if USE_SEE
  if( sqlite3_strglob("*.efossil", zDbFile)==0 ){
    static char *zSavedKey = 0;
    if( zSavedKey ){
      blob_set(pKey, zSavedKey);
    }else{
      char *zPrompt = mprintf("\rencryption key for '%s': ", zDbFile);
      prompt_for_password(zPrompt, pKey, 0);
      fossil_free(zPrompt);