Commit Graph

61 Commits (9f12f958eceae711a775c728145c8f2ae26b512e)

Author SHA1 Message Date
Gernot ef5260152e Most compilation errors of doxygen solved 1 year ago
Gernot fde67db15e Some syntax corrections in special comments for doxygen 1 year ago
positron 6f67623901 z/OS: remove our ZOS feature macros, using the predefined alternative __MVS__ instead 2 years ago
positron d3328ec683 Merge branch 'ENGINE-956' 2 years ago
positron 18e5676b4a remove warning print, which ended up appearing more often than I had anticipated 2 years ago
David Lanzendörfer acbbf1db83 Merge branch 'master' of into zos_support2 2 years ago
positron ea414ac15f 956: remove debugging prints, improve comments, fix the test suite (!)
Fix some test suite failures due to subtle interactions with the debugging
prints I forgot to remove.  Add a some important comments and a few minor
cosmetic improvements.
2 years 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
David Lanzendörfer 026cf763fb z/OS support: Adding missing functions for z/OS
Some functions are not provided properly by the libc provided by z/OS
and need to be provided by the platform.
2 years ago
Krista Bennett e560a80d3e ENGINE-606 squash commit 2 years ago
Krista 'DarthMama' Bennett 8a7fc79a3a internal function comment stubs 3 years ago
Krista 'DarthMama' Bennett 6d33475435 some doxygen stuff. might not be kept. 3 years ago
Krista 'DarthMama' Bennett 961d702ddc gnupg, netpgp purged from code 3 years ago
Volker Birk fe5fff38f8 fixing problem inside transactions 4 years ago
buff 0e208f4035 fixes: clang build error with NDEBUG: expected expression 4 years ago
Krista 'DarthMama' Bennett e80a3e1262 Pleaaaase check Makefile changes with non-default values. SYSTEM_DB remnants removed - use PER_MACHINE_DIRECTORY now 4 years ago
Krista 'DarthMama' Bennett c66c1955d3 merged in 325 4 years ago
Volker Birk 644e307684 adding features 4 years ago
Volker Birk cfb5a4c954 Create ~/.pEp/ directory on *NIX platforms and move management.db and keys.db there 4 years ago
Krista 'DarthMama' Bennett 07c633b39e ENGINE-588: added strnstr for non-bsd systems 4 years ago
Volker Birk 5f5f479228 adding newline 5 years ago
Krista Bennett 93a9bf8934 Pseudo-grafted updated test code from ENGINE-434, since it seems it may be a while til those discussions take place. 5 years ago
Edouard Tisserant d5c7d9cb3d Init will now fail if it can't write in gpg and gpg-agent config files at first start 6 years ago
Edouard Tisserant ac29854cbd Fix GCC warning: ignoring return value of ‘write’ 6 years ago
Roker bbe403a3bb avoid unitialized local pointer variables to reduce hard-to-find bugs 6 years ago
Hussein Kasem 89fdaf6fa8 new build config to have debug on Android Studio 6 years ago
Volker Birk e4cfb490c6 adding license info to each file 7 years ago
Hussein Kasem 070e69799b fix uuid generation for android 7 years ago
Edouard Tisserant c1133a48f3 Added timegm() for Android in platform_unix.c 7 years ago
Edouard Tisserant 8196f13c7e Fixed build on android, broken since a4e082c43cdd (incomlete rename of uuid types) 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
Edouard Tisserant 45b1510e06 Defined uuid_* on android, using OSSP_UUID library, cause android's native support doesn't include any such a thing. 7 years ago
Edouard Tisserant eda0552a2e Stubs for uuid_* on android to at leas allow linking the adapter 7 years ago
Edouard Tisserant 39da381434 Merged default to keysync 7 years ago
Krista Grothoff e92b0bb683 Short-term defined-out regnexec for non netpgp users because of android library issues (found elsewhere and frequently on the web.) 7 years ago
Volker Birk c249047914 second instance for testing 7 years ago
Krista Grothoff 7dbd3877af Stowing changes 7 years ago
Volker Birk 2a10cd2f6c fixing MacOS X build 7 years ago
Krista Grothoff dfc7bfc9a0 Added Dirk's define patches for iOS 7 years ago
Krista Grothoff 0c41902ed4 work on fix #36: conditional strlcpy/strcat impl for non-BSD systems. Branched to make testing on other OSs easier before merge to default. 7 years ago
Roker c48e728031 let it work also on 32 bit platforms. Okay a platform with time_t==double would not work, yet 7 years ago
Edouard Tisserant 1e0715adc5 Fixing #100 (continued): 31 bit random number generator with static seed (Android) 7 years ago
Edouard Tisserant 0384cb6a95 Fixing #100 : 31 bit random number generator with static seed (Android) 7 years ago
Edouard Tisserant 96f5a59684 fix #14 : Local buffer overflow 7 years ago
Krista Grothoff a04aa42f70 Added gpa-agent.conf defaults for passphrase timeouts. 7 years ago
Roker 31b0eb98e5 fix random() implementation for Android, so not always the same number is returned. Add comment that random() is predictive and non-secure 7 years ago
Volker Birk 68e4dc72ac changing color values 7 years ago
Dirk Zimmermann 0b170a44dc $HOME is already set in the adaper, nothing else needed 8 years ago
Edouard Tisserant 79f97b71ee iOS: safer way to compute DB path 8 years ago
Dirk Zimmermann d252e3d25d iOS: Changed DB path 8 years ago