From 259cbefd5c5d9fbd2ea3c3cd0b2a7d60af81c52b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 4 Feb 2009 09:51:43 +0000 Subject: Provide inforation about smartcards. --- src/gpgme.h.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gpgme.h.in') 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; -- cgit v1.2.3