diff options
Diffstat (limited to 'lang/cpp/src')
| -rw-r--r-- | lang/cpp/src/context.cpp | 10 | ||||
| -rw-r--r-- | lang/cpp/src/context.h | 3 | 
2 files changed, 13 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 7d04e9cc..57f92394 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1799,6 +1799,16 @@ Error Context::startRevokeSignature(const Key &key, const Key &signingKey,                   key.impl(), signingKey.impl(), uids.c_str(), flags));  } +Error Context::addAdsk(const Key &k, const char *adsk) +{ +    return Error(d->lasterr = gpgme_op_createsubkey(d->ctx, k.impl(), adsk, 0, 0, GPGME_CREATE_ADSK)); +} + +Error Context::startAddAdsk(const Key &k, const char *adsk) +{ +    return Error(d->lasterr = gpgme_op_createsubkey_start(d->ctx, k.impl(), adsk, 0, 0, GPGME_CREATE_ADSK)); +} +  Error Context::setFlag(const char *name, const char *value)  {    return Error(d->lasterr = gpgme_set_ctx_flag(d->ctx, name, value)); diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index 4d7fedf0..c4f968f4 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -324,6 +324,9 @@ public:      Error startRevokeSignature(const Key &key, const Key &signingKey,                                 const std::vector<UserID> &userIds = std::vector<UserID>()); +    Error addAdsk(const Key &k, const char *adsk); +    Error startAddAdsk(const Key &k, const char *adsk); +      // using TofuInfo::Policy      Error setTofuPolicy(const Key &k, unsigned int policy);      Error setTofuPolicyStart(const Key &k, unsigned int policy);  | 
