Added pgp_key_revoked to cryptotech.*
authorEdouard Tisserant
Wed, 18 May 2016 17:53:51 +0200
changeset 663095027011e0d
parent 662 3c727b41d0c2
child 664 1bec487d0d47
Added pgp_key_revoked to cryptotech.*
src/cryptotech.c
src/cryptotech.h
     1.1 --- a/src/cryptotech.c	Wed May 18 17:52:32 2016 +0200
     1.2 +++ b/src/cryptotech.c	Wed May 18 17:53:51 2016 +0200
     1.3 @@ -45,6 +45,7 @@
     1.4          cryptotech[PEP_crypt_OpenPGP].renew_key = pgp_renew_key;
     1.5          cryptotech[PEP_crypt_OpenPGP].revoke_key = pgp_revoke_key;
     1.6          cryptotech[PEP_crypt_OpenPGP].key_expired = pgp_key_expired;
     1.7 +        cryptotech[PEP_crypt_OpenPGP].key_revoked = pgp_key_revoked;
     1.8  #ifdef PGP_BINARY_PATH
     1.9          cryptotech[PEP_crypt_OpenPGP].binary_path = PGP_BINARY_PATH;
    1.10  #endif
     2.1 --- a/src/cryptotech.h	Wed May 18 17:52:32 2016 +0200
     2.2 +++ b/src/cryptotech.h	Wed May 18 17:53:51 2016 +0200
     2.3 @@ -63,6 +63,9 @@
     2.4  typedef PEP_STATUS (*key_expired_t)(PEP_SESSION session, const char *fpr,
     2.5          bool *expired);
     2.6  
     2.7 +typedef PEP_STATUS (*key_revoked_t)(PEP_SESSION session, const char *fpr,
     2.8 +                                    bool *revoked);
     2.9 +
    2.10  typedef PEP_STATUS (*binary_path_t)(const char **path);
    2.11  
    2.12  typedef struct _PEP_cryptotech_t {
    2.13 @@ -84,6 +87,7 @@
    2.14      renew_key_t renew_key;
    2.15      revoke_key_t revoke_key;
    2.16      key_expired_t key_expired;
    2.17 +    key_revoked_t key_revoked;
    2.18      binary_path_t binary_path;
    2.19  } PEP_cryptotech_t;
    2.20