summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/Makefile
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-01-29 10:22:46 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-01-29 10:22:46 +0100
commitbff390b189ac92012a3c25e8c361013c78698fd3 (patch)
tree4460d76b3d396c48d7974ba49cad2ed08f08abf9 /openpgp-ffi/Makefile
parentee276a2dc55fd55f22494e9e70187f060fb2f151 (diff)
openpgp: TPKBuilder::autocrypt should not default to an empty UID
- TPKBuilder::autocrypt created a TPK with a single User ID, as required by the Autocrypt specification. Since no User ID was passed, it used the empty string. - An empty User ID is a bit surprising, and it is unclear if it is even a reasonable default (GnuPG rejects it). But, even if the programmer is aware of this, adding a new user ID does not replace the empty User ID, and removing the empty User ID is a pain. - Change the API to better match typical usage: have the constructor take the User ID. - Nevertheless, preserve the flexibility by making the User ID optional to allow the caller to add a User ID later. In this case, a non-autocrypt compliant TPK with no User ID is created instead of an empty User ID. - Closes #146.
Diffstat (limited to 'openpgp-ffi/Makefile')
0 files changed, 0 insertions, 0 deletions