Add CreationFlags and simplify API of createKey and createSubkey
* src/context.h (enum Context::CreationFlags): New. (Context::createKey, Context::startCreateKey, Context::createSubkey, Context::startCreateSubkey): Add overload. Deprecate old overload. (Context::createKeyEx): Deprecate. (operator|, operator|=): New. * src/context.cpp ((Context::createKey, Context::startCreateKey, Context::createSubkey, Context::startCreateSubkey): Define new overload. * tests/CMakeLists.txt: Add new test program. * tests/run-createkey.cpp: New.
CreationFlags provides the useful GPGME_CREATE_* flags of gpgme. The
GPGME_CREATE_* flags that have no effect (because support for them has
never been implemented) were left out. The new overloads provide a
nicer C++ interface leaving out useless arguments (reserved, certKey).
- GnuPG-bug-id: T7581