aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-01-05 17:36:53 +0000
committerWerner Koch <[email protected]>2010-01-05 17:36:53 +0000
commit97c5d4d312dbb6d6f70d1d8ea88ab6a03f4e2f2a (patch)
treec2152eeed6bd99594e4208c1d1e8b73cc38ecb68 /src/gpgme.h.in
parent2009-12-22 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-97c5d4d312dbb6d6f70d1d8ea88ab6a03f4e2f2a.tar.gz
gpgme-97c5d4d312dbb6d6f70d1d8ea88ab6a03f4e2f2a.zip
Add an API to change passphrases. Currently only implemented for
GPGSM. Requires GnuPG 2.1
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 13a33992..68ebd1a4 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -1,6 +1,7 @@
/* gpgme.h - Public interface to GnuPG Made Easy. -*- c -*-
Copyright (C) 2000 Werner Koch (dd9jn)
- Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2009 g10 Code GmbH
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2009
+ 2010 g10 Code GmbH
This file is part of GPGME.
@@ -209,7 +210,9 @@ typedef enum
GPGME_PK_RSA_S = 3,
GPGME_PK_ELG_E = 16,
GPGME_PK_DSA = 17,
- GPGME_PK_ELG = 20
+ GPGME_PK_ELG = 20,
+ GPGME_PK_ECDSA = 301,
+ GPGME_PK_ECDH = 302
}
gpgme_pubkey_algo_t;
@@ -1664,6 +1667,14 @@ gpgme_error_t gpgme_op_keylist_next (gpgme_ctx_t ctx, gpgme_key_t *r_key);
/* Terminate a pending keylist operation within CTX. */
gpgme_error_t gpgme_op_keylist_end (gpgme_ctx_t ctx);
+/* Change the passphrase for KEY. FLAGS is reserved for future use
+ and must be passed as 0. */
+gpgme_error_t gpgme_op_passwd_start (gpgme_ctx_t ctx, gpgme_key_t key,
+ unsigned int flags);
+gpgme_error_t gpgme_op_passwd (gpgme_ctx_t ctx, gpgme_key_t key,
+ unsigned int flags);
+
+
/* Trust items and operations. */