<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme, branch gsoc/jacob-key-import</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gsoc%2Fjacob-key-import</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gsoc%2Fjacob-key-import'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2018-06-17T04:35:20Z</updated>
<entry>
<title>python bindings: core - key import</title>
<updated>2018-06-17T04:35:20Z</updated>
<author>
<name>Ben McGinnes</name>
<email>ben@adversary.org</email>
</author>
<published>2018-06-17T04:35:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=5a80e755008bbb3f4c7f91ffccd38f26cd8b3960'/>
<id>urn:sha1:5a80e755008bbb3f4c7f91ffccd38f26cd8b3960</id>
<content type='text'>
* Wrapped the key import function in the try/exception statements
  needed to catch at least the most likely unsuccessful import attempt
  errors.
* Mostly draws on the file error and no data import statuses for
  errors, with a couple of exceptions.

Signed-off-by: Ben McGinnes &lt;ben@adversary.org&gt;
</content>
</entry>
<entry>
<title>python bindings: core key import</title>
<updated>2018-06-16T23:28:30Z</updated>
<author>
<name>Ben McGinnes</name>
<email>ben@adversary.org</email>
</author>
<published>2018-06-16T23:28:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=0e762608ef5a598030b8d0e56261a830e1b7b724'/>
<id>urn:sha1:0e762608ef5a598030b8d0e56261a830e1b7b724</id>
<content type='text'>
* The foundation of a pythonic key import function authored by Jacob
  Adams.
* A unit testing script for the same function originally authored by
  Tobias Mueller
* Added DCO reference for Jacob Adams to the GPGME AUTHORS file.
* Additional details regarding this patch are available here:
  https://dev.gnupg.org/T4001

Signed-off-by: Ben McGinnes &lt;ben@adversary.org&gt;
</content>
</entry>
<entry>
<title>script: groups.py</title>
<updated>2018-06-10T15:03:58Z</updated>
<author>
<name>Ben McGinnes</name>
<email>ben@adversary.org</email>
</author>
<published>2018-06-10T15:03:58Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=92cd060f5e2f4fdbfbe4812ebe8ef57e82e1609f'/>
<id>urn:sha1:92cd060f5e2f4fdbfbe4812ebe8ef57e82e1609f</id>
<content type='text'>
* Added check for if it is run on a Windows system so that the correct
  binary filename is invoked.
</content>
</entry>
<entry>
<title>cpp: Add proper gpgme_op_createkey</title>
<updated>2018-06-08T14:19:47Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-08T14:19:47Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=8dff414e170e4df8ea661028c4ac1588311ca26e'/>
<id>urn:sha1:8dff414e170e4df8ea661028c4ac1588311ca26e</id>
<content type='text'>
* lang/cpp/src/context.cpp, lang/cpp/src/context.h
(Context::createKeyEx): New.

--
The createKeyEx function follows the usual pattern that the
synchronous call returns a result directly while for the
async an extra call is neccessary.
</content>
</entry>
<entry>
<title>json: Return fingerprint as createkey result</title>
<updated>2018-06-08T12:52:41Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-08T12:52:41Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=54146d90dd5518c24c30e6d2ebeb7f47ed4eb29e'/>
<id>urn:sha1:54146d90dd5518c24c30e6d2ebeb7f47ed4eb29e</id>
<content type='text'>
* src/gpgme-json.c (op_createkey): Return fingerprint of new key.
</content>
</entry>
<entry>
<title>json: Add op_createkey</title>
<updated>2018-06-08T11:55:21Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-08T11:55:21Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=6c74a59e8855d1cac0d8001ad1b7843d2d15be5e'/>
<id>urn:sha1:6c74a59e8855d1cac0d8001ad1b7843d2d15be5e</id>
<content type='text'>
* src/gpgme-json.c (hlp_createkey, op_createkey): New.
(process_request, hlp_help): Add it.

--
This uses an unrestricted context for now until

GnuPG-Bug-Id: T4010
is implemented in GnuPG.
</content>
</entry>
<entry>
<title>json: Generalize chunking and getmore</title>
<updated>2018-06-08T08:29:59Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-07T15:48:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=af8510fb7f4d5c90cc53f10dcc740f377af73d68'/>
<id>urn:sha1:af8510fb7f4d5c90cc53f10dcc740f377af73d68</id>
<content type='text'>
* src/gpgme-json.c (MIN_REPLY_CHUNK_SIZE): Lower value to
new real minimum.
(DEF_REPLY_CHUNK_SIZE): Don't chunk by default.
(pending_data): Remove type and base64.
(make_data_object): Remove chunksize handling as this is now
generic.
(encode_and_chunk): Setup the pending_data buffer for chunking
if required.
(op_getmore): Changed to generically work on a response.
(hlp_getmore): Update accordingly.
(hlp_help): Document chunksize as generic parameter for all commands.
(process_request): Use encode_and_chunk on the response.
(hlp_encrypt, op_encrypt, hlp_decrypt, op_decrypt),
(hlp_verify, op_verify, hlp_sign, op_sign),
(op_keylist, hlp_keylist, hlp_export, op_export): Update accordingly.

--
To include handling for json properties e.g. in a keylist in
the chunk mechanism the mechanism is now more general.

If the chunksize property is provided the response will
always look exactly like a "getmore" response. E.g.

e.g.:
{
    "op": "keylist",
    "chunksize": 64
}
Results in:
{
   "more": true,
   "base64": true,
   "response": "ewoJImtleXMiOglbewoJCQkicmV2b2tlZCI6"
}

For simplicity this is even true if the chunksize is larger
then the response.

The client has to combine all "response" chunks and base64
decode them to get valid json.

The complete response (including json) is never larger then
the chunksize but might be smaller. Except for interactive
use due to additional format characters.
</content>
</entry>
<entry>
<title>json: Rework verify_result_to_json</title>
<updated>2018-06-07T14:07:59Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-07T14:05:15Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=e48f4a18f807ee42b31968b84f6ae7811d8d8a45'/>
<id>urn:sha1:e48f4a18f807ee42b31968b84f6ae7811d8d8a45</id>
<content type='text'>
* src/gpgme-json.c (sigsum_to_json): Add bool repr.
(signature_to_json, verify_result_to_json): Extend and follow better
pattern.
(hlp_decrypt, hlp_verify): Expand doc.

--
This should make it more clear which values are mapped as
the naming is more direct and clear and help to use
the gpgme documentation to understand the verify_result values.
</content>
</entry>
<entry>
<title>json: Add direct way to query a config option</title>
<updated>2018-06-07T09:42:47Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-07T09:42:47Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=906ea48df3e178bea3e2c744ddd834b23fe553fb'/>
<id>urn:sha1:906ea48df3e178bea3e2c744ddd834b23fe553fb</id>
<content type='text'>
* src/gpgme-json.c (op_config_opt, hlp_config_opt): New operation.
(process_request, hlp_help): Add it.

--
This is more conveniant API for most query operations where
a single option is required.

An example would be:
{
    "op": "config_opt",
    "component": "gpg",
    "option": "default-key"
}

Which results in:
{
   "option":       {
           "name": "default-key",
           "description":  "use NAME as default secret key",
           "argname":      "NAME",
           "flags":        0,
           "level":        0,
           "type": 1,
           "alt_type":     1,
           "value":        [{
                           "string":       "F462B6B1",
                           "is_none":      false
                   }]
   }
}
</content>
</entry>
<entry>
<title>json: Add op_config to query gpgconf</title>
<updated>2018-06-07T09:26:48Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2018-06-07T09:23:14Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7e18c7a07a1e2c58ef4d5ddeed46bcce098bdf6c'/>
<id>urn:sha1:7e18c7a07a1e2c58ef4d5ddeed46bcce098bdf6c</id>
<content type='text'>
* src/gpgme-json.c (op_config, hlp_config): New.
(hlp_help, process_request): Add config.
(conf_arg_to_json, conf_opt_to_json, conf_comp_to_json): New
helpers.
</content>
</entry>
</feed>
