Changeset 4590

Show
Ignore:
Timestamp:
09/02/06 00:49:46 (2 years ago)
Author:
erijo
Message:

Commit part of the patch from Danil Krivopustov (#1386: Can't get the passphrase from licq_gpg.conf). I'm not adding the part that would trim the password since that might break the passphrase for current users. As long as your password doesn't start or end with space, this should work.

Closes #1386.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/gpg.cpp

    r4526 r4590  
    154154 
    155155  mKeysIni.SetSection("gpg"); 
    156   mKeysIni.ReadStr("passphrase", buf); mGPGPassphrase = strdup(buf); 
     156  mKeysIni.ReadStr("passphrase", buf, ""); mGPGPassphrase = strdup(buf); 
    157157 
    158158  const char *gpgme_ver = gpgme_check_version(0);