src/cryptotech.h
changeset 214 79333debeee0
parent 211 a022e853f81e
child 259 71d6c073fda4
     1.1 --- a/src/cryptotech.h	Tue Apr 21 08:56:53 2015 +0200
     1.2 +++ b/src/cryptotech.h	Tue Apr 21 15:19:47 2015 +0200
     1.3 @@ -54,12 +54,15 @@
     1.4  
     1.5  typedef PEP_STATUS (*send_key_t)(PEP_SESSION session, const char *pattern);
     1.6  
     1.7 -typedef PEP_STATUS (*renew_key_t)(PEP_SESSION session, const char *key_id,
     1.8 +typedef PEP_STATUS (*renew_key_t)(PEP_SESSION session, const char *fpr,
     1.9          const timestamp *ts);
    1.10  
    1.11 -typedef PEP_STATUS (*revoke_key_t)(PEP_SESSION session, const char *key_id,
    1.12 +typedef PEP_STATUS (*revoke_key_t)(PEP_SESSION session, const char *fpr,
    1.13          const char *reason);
    1.14  
    1.15 +typedef PEP_STATUS (*key_expired_t)(PEP_SESSION session, const char *fpr,
    1.16 +        bool *expired);
    1.17 +
    1.18  typedef struct _PEP_cryptotech_t {
    1.19      uint8_t id;
    1.20      // the following are default values; comm_type may vary with key length or b0rken crypto
    1.21 @@ -78,6 +81,7 @@
    1.22      send_key_t send_key;
    1.23      renew_key_t renew_key;
    1.24      revoke_key_t revoke_key;
    1.25 +    key_expired_t key_expired;
    1.26  } PEP_cryptotech_t;
    1.27  
    1.28  typedef uint64_t cryptotech_mask;