diff options
author | Werner Koch <[email protected]> | 2009-02-04 09:51:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-02-04 09:51:43 +0000 |
commit | 259cbefd5c5d9fbd2ea3c3cd0b2a7d60af81c52b (patch) | |
tree | 799e08043730bc4ec162b38c61ea08135119b3a2 /src/gpgme.h.in | |
parent | First take on the low-level assuan interface. (diff) | |
download | gpgme-259cbefd5c5d9fbd2ea3c3cd0b2a7d60af81c52b.tar.gz gpgme-259cbefd5c5d9fbd2ea3c3cd0b2a7d60af81c52b.zip |
Provide inforation about smartcards.
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r-- | src/gpgme.h.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index 4b68d801..e83b1fb1 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -519,8 +519,11 @@ struct _gpgme_subkey /* True if subkey is qualified for signatures according to German law. */ unsigned int is_qualified : 1; + /* True if the secret key is stored on a smart card. */ + unsigned int is_cardkey : 1; + /* Internal to GPGME, do not use. */ - unsigned int _unused : 22; + unsigned int _unused : 21; /* Public key algorithm supported by this subkey. */ gpgme_pubkey_algo_t pubkey_algo; @@ -542,6 +545,9 @@ struct _gpgme_subkey /* The expiration timestamp, 0 if the subkey does not expire. */ long int expires; + + /* The serial number of a smart card holding this key or NULL. */ + char *card_number; }; typedef struct _gpgme_subkey *gpgme_subkey_t; |