Commit Graph

49 Commits (9f12f958eceae711a775c728145c8f2ae26b512e)

Author SHA1 Message Date
Gernot ef5260152e Most compilation errors of doxygen solved 1 year ago
positron 3095f39fec fix ENGINE-956
It is now possible to use shell environment variables in PER_USER_DIRECTORY and
PER_MACHINE_DIRECTORY, expanded at *run* time.  This is meant to allow more
freedom to the deployment engineer, without affecting development.  Notice that,
when PER_USER_DIRECTORY and PER_MACHINE_DIRECTORY are defined in the Makefile,
dollar signs must be escaped (a dollar becomes a double dollar) because of
*make* syntax: this has nothing to do with pEp engine code.
Expansion follows the Unix shell $VARIABLE syntax: ${VARIABLE} is not supported.
See _expand_variables.

src/platform_unix.c contained some duplicated logic about caching path results
into static variables; this change set would have added to the complexity by
calling the new path expansion function, in many different places.  Seize the
occasion for factoring.

Do not change the meaning of PER_USER_DIRECTORY yet; I would like to do it,
since it is confusing and inconsistent with per_user_directory
(PER_USER_DIRECTORY is a relative path on Unix, while per_user_directory is
absolute), but the actual semantics with respect to $HOME and $PEP_HOME is
complicated and I do not want to break it.
New API function per_user_relative_directory.

Remove the ugly "reset" argument from unix_local_db (which was conditionally
defined according to NDEBUG!), used to force path re-computation in the test
suite after changing an environment variable so as to work in a new "home"
directory.  In the place of this reset argument add clear API functions to the
engine for handling the cache.
My quick grapping and IRC interaction confirm that nobody was using the
functionality out of the engine test suite.  Adapt the test suite to use the new

Tentatively add caching and expansion functionality to android_system_db as well.
2 years ago
Krista Bennett e560a80d3e ENGINE-606 squash commit 2 years ago
Volker Birk 065b5463b8 now it behaves the same 3 years ago
Roker b3ab969cf8 Let our own timegm() for Windows behave the same (buggy) way as the POSIX version of timegm().... 3 years ago
Volker Birk 5fc28bea2a ENGINE-737: do the same for PER_USER_DIRECTORY 3 years ago
Volker Birk f8573ae251 ENGINE-737: expanding 3 years ago
Jorg Knobloch 95adced651 ENGINE-735: tm_gmtoff needs to be subtracted, not added. 3 years ago
Volker Birk c5657a0c53 error handling 3 years ago
Volker Birk b296d2bd00 typo 3 years ago
Volker Birk 18327c7931 exporting for adapters 3 years ago
Volker Birk 3a7e7e15c6 ENGINE-735 implementation of timestamp for Windows 3 years ago
Krista 'DarthMama' Bennett 961d702ddc gnupg, netpgp purged from code 3 years ago
Jörg Knobloch 068224427e Replaced timegm with simple define 3 years ago
Volker Birk c8d92d45f7 clean up 3 years ago
Thomas 6471b356c1 Untabify platform_windows.cpp 4 years ago
Thomas 3b62f1e35e OUT-573: Fix custom paths for user folder on Windows 4 years ago
Thomas 1d458d9234 Merge with sequoia_windows 4 years ago
Thomas ba37576028 Rename variables 4 years ago
Volker Birk 644e307684 adding features 4 years ago
Thomas 9345775ba4 Merge with sync 4 years ago
Krista 'DarthMama' Bennett 07c633b39e ENGINE-588: added strnstr for non-bsd systems 4 years ago
Thomas 9c222d9d12 Display debug log messages in Visual Studio Output window 4 years ago
Thomas 2900201550 ENGINE-579: Read Registry values pEp/UserFolder and pEp/SystemFolder and use the defined paths if available 4 years ago
Thomas fc0173604d ENGINE-579: save management.db and keys.db to different folder if env variable PEP_APPDATA is set 4 years ago
Volker Birk dbb6ab5877 check return value instead of errno 5 years ago
Volker Birk 476e31491a explicit conversions 5 years ago
krista 143847c03b ENGINE-305: fixes for tchar 6 years ago
Krista Bennett 9ec0b1d6b5 ENGINE-305: attempt to get GnuPG paths for Gpg4Win 3.x correct 6 years ago
Thomas b77fb05a04 Adjust more paths for Gpg4win 3.0 6 years ago
Thomas 2e9f023660 Add looking up GnuPG install directory on Windows also in current user scope 6 years ago
Volker Birk e4cfb490c6 adding license info to each file 7 years ago
Markus Schaber 134079d79e Sync: Fix windows build, as discussed with Edouard. 7 years ago
Markus Schaber e5699a1b52 Make the pEp Engine keysync branch compile on Windows again.
Warning: The changes are not yet tested. Especially the ones in platform_unix.*.
7 years ago
Volker Birk 21be660041 UUID specifica 7 years ago
Krista Grothoff fbbecc1d07 Added strlcat/cpy functions to windows code. 7 years ago
Krista Grothoff a04aa42f70 Added gpa-agent.conf defaults for passphrase timeouts. 7 years ago
Volker Birk c4d711f18b debugging 8 years ago
Volker Birk 4eba0bc7c1 stpcpy() added to platform windoze 8 years ago
Volker Birk b4f8d33f3a correcting line endings 8 years ago
Volker Birk f7233d42ab modifications for Windoze 8 years ago
vb 2e27b2a8a0 ... 8 years ago
vb 92444d1eda go on... 8 years ago
vb 39ef3b9b00 rational 8 years ago
vb 22b75f37ee ... 8 years ago
vb d70a32af02 unittest in main Makefile 8 years ago
vb 46a44263fe random() for Windoze 8 years ago
vb af6c3b757e moving functionality into pEpEngine 9 years ago
vb 7feceb3f9f initial commit 9 years ago