| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* Fixed whitespace.
|
|
|
|
|
| |
* Added a reference to new script which will setup a temporary homedir
for a user.
|
|
|
|
|
|
|
|
|
|
| |
* Script to create a temporary gnupg homedir in the user's directory
for testing or scripting purposes.
* Creates a hidden directory on POSIX systems with the correct
permissions (700).
* Creates a gpg.conf in that directory containing the same
configuration options as used in the "Danger Mouse" example in the
HOWTO with the correct permissions (600).
|
|
|
|
|
| |
* Fixed the plaintext, result and verify_result references in the
decryption section.
|
|
|
|
|
|
|
| |
* src/engine-gpg.c (build_argv): Allcate one slot more for ARGV.
--
Fixes-commit: b9000bc293164ff62efa7e91e5cf6d5fc19d482f
|
|
|
|
|
|
| |
* src/gpgme-json.c (_create_new_context): Set flag.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/context.h (gpgme_context): Add 'request_origin'.
* src/gpgme.c (gpgme_release): Free that field.
(gpgme_set_ctx_flag, gpgme_get_ctx_flag): Add "request-origin".
* src/engine-backend.h (engine_ops): Add 'set_engine_ops' func ptr and
adjust all users.
* src/engine.c (_gpgme_engine_set_engine_flags): New.
* src/op-support.c (_gpgme_op_reset): Call that func.
* src/engine-gpg.c (struct engine_gpg): Add 'request_origin'.
(gpg_set_engine_flags): New.
(_gpgme_engine_ops_gpg): Hook it.
(build_argv): Use command line option --request-origin.
* src/engine-gpgsm.c (struct engine_gpgsm): Add 'request_origin'.
(gpgsm_set_engine_flags): New.
(_gpgme_engine_ops_gpgsm): Hook it.
(start): Send OPTION "request-origin".
* src/engine-assuan.c (struct engine_llass): Add 'request_origin'.
(gpgsm_set_engine_flags): New.
(_gpgme_engine_ops_assuan): Hook it.
(start): Send OPTION "pretend-request-origin".
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
| |
* src/gpgme-json.c (add_base64_to_object): Return an error if building
with an older libgpg-error.
Signed-off-by: Werner Koch <[email protected]>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* src/gpgme-json.c (add_base64_to_object): New.
(data_from_base64_string): New.
(op_encrypt): Employ them.
(process_request): Print unformated json.
--
Signed-off-by: Werner Koch <[email protected]>
|
| |
| |
| |
| | |
* src/cJSON.c (cJSON_CreateStringConvey): New.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* src/gpgme-json.c: Remove header argparse.h. Define
GPGRT_ENABLE_ARGPARSE_MACROS.
(interactive_repl): Replace strusage by gpgrt_strusage.
(my_strusage): Add SPDX level.
(main): Switch to gpgrt_argparse stuff but keep very limited
functionality when building with an older libgpg-error.
Signed-off-by: Werner Koch <[email protected]>
|
| |
| |
| |
| | |
Signed-off-by: Werner Koch <[email protected]>
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* src/gpgme-json.c: New.
* src/Makefile.am (bin_PROGRAMS): Add gpgme-json.
(gpgme_json_SOURCES, gpgme_json_LDADD): New.
Signed-off-by: Werner Koch <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* src/cJSON.c: Remove util.h. Use gpgrt alloc functions.
(cJSON_Delete): Do not clobber ERRNO.
(cJSON_AddItemToObject): Return OBJECT or NULL.
(cJSON_AddNullToObject): New.
(cJSON_AddTrueToObject): New.
(cJSON_AddFalseToObject): New.
(cJSON_AddBoolToObject): New.
(cJSON_AddNumberToObject): New.
(cJSON_AddStringToObject): New.
* src/cJSON.h (cJSON__h): Replace macro by cJSON_h for C compliance.
(cJSON_AddNullToObject): Remove macro.
(cJSON_AddTrueToObject): Remove macro.
(cJSON_AddFalseToObject): Remove macro.
(cJSON_AddBoolToObject): Remove macro.
(cJSON_AddNumberToObject): Remove macro.
(cJSON_AddStringToObject): Remove macro.
--
The gpgrt malloc functions are used so that we can easily mix memory
returned by gpgrt (e.g. es_read_line) with memory returned from the
JSON function. In general that is not needed but on Windows it makes
a difference if the gpgme DLL is linked to a different C runtime
than the application.
The macros have been replaced to allow error checking (i.e out of
core) for these functions. More error checking should be implemented
instead of silently creating objects which are not as requested.
Signed-off-by: Werner Koch <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* src/cJSON.c: New.
* src/cJSON.h: New.
* src/cJSON.readme: New.
--
This is a copy of the code from the payproc commit
af5d6b4f820ee19e246a2cab6f56465fe91f1233. The code was originally
added to payproc with the commit below.
Signed-off-by: Werner Koch <[email protected]>
===============================================
commit 7ae7ef29bc5ec19e005e6a5a739233d655f3f05f
Author: Werner Koch <[email protected]>
AuthorDate: Wed Apr 2 09:01:42 2014 +0200
Commit: Werner Koch <[email protected]>
CommitDate: Wed Apr 2 09:12:02 2014 +0200
Simplify cJSON and add new macros.
* src/cJSON.h: Re-indented.
(cjson_t): New.
(cjson_is_): New macros.
* src/cJSON.c: Re-indented. Include errno.h and our util.h.
(ep): Remove global var.
(cJSON_GetErrorPtr): Remove.
(cJSON_strcasecmp): Cast args for use with tolower.
(cJSON_malloc, cJSON_free): Remove. Change callers to use xtrymalloc
and xfree.
(cJSON_InitHooks): Remove.
(cJSON_strdup): Remove. Change callers to use xtrystrdup.
(cJSON_New_Item): Simplify.
(cJSON_ParseWithOpts, cJSON_Parse): Add arg R_ERROFF.
(parse_string, parse_value, parse_array, parse_object): Add arg EP.
--
cJSON has been taken from cjson-code-58.zip. The README file has been
renamed to cJSON.readme and the files have been changed to GNU coding
standards. Because that parser is small enough to be source copied it
does not make sense to treat it as a library and I changed the memory
allocation functions to the usual xmalloc ones. The only external
dependency now is out util.h which declares those functions.
The lowercase cjson_t better fits into our coding style as well as the
new macros. Thanks to Dave Gamble for this nice parser.
===============================================
|
| | |
| | |
| | |
| | | |
* Fixed table.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added GPGME Python bindings HOWTO in Australian/British English.
** en-US "translation" still to be done.
* Added several example scripts comprised of the "Basic Functions"
section of the HOWTO (plus the work-around at the end).
** As these scripts are very basic examples they are released under
both the GPLv2+ and the LGPLv2.1+ (just like GPGME itself).
Signed-off-by: Ben McGinnes <[email protected]>
|
|\ \ \
| |_|/
|/| |
| | | |
into ben/docs/2018-03
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Temporarily removing multi-key selection based examples.
* There are a few issues with getting the key selections to play
nicely with gpg.Context().keylist object types.
* Will troubleshoot them separately and restore them when that's
worked out, but I don't want these more complicated examples to
delay merging the HOWTO with master.
|
| | |
| | |
| | |
| | | |
* Troubleshooting.
|
| | |
| | |
| | |
| | | |
* Fixed two incorrect Context() objects.
|
| | |
| | |
| | |
| | | |
* Removed extraneous blank line.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Similar to group-key-selection.py, but does not use an existing
group from gpg.conf; instead takes multiple key IDs, fingerprints or
patterns on the command line and adds them to a keylist object.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Begins to string together some of the simpler examples to do more
useful things.
* Signs and encrypts a file while encrypting to every key in a group
specified in the gpg.conf file.
|
| | |
| | |
| | |
| | |
| | | |
* Example of preparing a keylist object using an existing group line
from the gpg.conf file.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Updated usage so it only references importing the final list of
lists produced. Trying to use some of the mid-points can have
unpredictable results (this is part of the problem with work
arounds).
|
| | |
| | |
| | |
| | | |
* Added a docstring.
|
| | |
| | |
| | |
| | |
| | | |
* Added example for verifying detached signatures against the files
they're the signatures for.
|
| | |
| | |
| | |
| | | |
* Added example to verify normal and clearsigned files.
|
| | |
| | |
| | |
| | | |
* Fixed minor error in one of the verification examples.
|
| | |
| | |
| | |
| | | |
* Added example to make detached signatures of a file with key selection.
|
| | |
| | |
| | |
| | | |
* Adjusted the doc string.
|
| | |
| | |
| | |
| | | |
* Fixed minor errors in two doc strings.
|
| | |
| | |
| | |
| | | |
* Added example to clear sign a file with signing key selection.
|
| | |
| | |
| | |
| | | |
* deconstructed and fixed all three signing methods.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Similar to encrypt file except for signing a file in normal mode.
* Noticed additional changes to be made to the howto to match this,
but they will have to wait due to a power outage (currently running
on battery and a mobile connection, but that won't last).
|
| | |
| | |
| | |
| | | |
* Fixed typos in examples.
|
| | |
| | |
| | |
| | | |
* Fixed missing parenthesis.
|
| | |
| | |
| | |
| | | |
* Decrypts a file taking file names as command line parameters.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added groups selection work around code.
* Intended for use as a module to be imported by other scripts,
usually with "from groups import group_lists" or "from groups import
group_lines" or similar.
|
| | |
| | |
| | |
| | |
| | | |
* Nested encryption in try/except statement in case recipient key is
untrusted or invalid.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Example to sign and encrypt a file.
* Similar to encrypt-file.py except all keys are considered trusted
and signs with the default key.
* Also encrypts to the default key.
|
| | |
| | |
| | |
| | | |
* Fixed typo in second encryption call.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Example to encrypt a file to a single key.
* Takes key ID and/or fpr as a CLI parameter.
* Takes path and filename as a CLI parameter.
* Encrypts to specified key only, no signing and writes the output in
both ASCII armoured and GPG binary formats with output filenames
based on input filename.
|
| | |
| | |
| | |
| | |
| | | |
* Added script wo count the number of keys in both the public and
secret key stores.
|
| | |
| | |
| | |
| | |
| | | |
* Explicitly stated that all this code is released under the GPLv2+
and the LGPLv2.1+.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added the same license as used with the HOWTO.
* Since these examples are so basic, they'll be dual licensed the same
as GPGME itself (otherwise it would slip too dangerously against the
need for permissive licensing of crypto libraries).
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Added reference to location where all the examples included in the
HOWTO will be available as executable scripts.
* Included a short README file in that location.
|