src/pgp_netpgp.c
changeset 226 a2079f2f7a8c
parent 225 ed16ea1bece7
child 227 9321f8fb77c2
     1.1 --- a/src/pgp_netpgp.c	Sat Apr 25 01:15:24 2015 +0200
     1.2 +++ b/src/pgp_netpgp.c	Sat Apr 25 01:23:46 2015 +0200
     1.3 @@ -807,7 +807,11 @@
     1.4      return PEP_STATUS_OK;
     1.5  }
     1.6  
     1.7 -PEP_STATUS pgp_revoke_key(PEP_SESSION session, const char *fpr)
     1.8 +PEP_STATUS pgp_revoke_key(
     1.9 +        PEP_SESSION session,
    1.10 +        const char *fpr,
    1.11 +        const char *reason
    1.12 +    )
    1.13  {
    1.14      PEP_STATUS status = PEP_STATUS_OK;
    1.15      
    1.16 @@ -819,3 +823,23 @@
    1.17      return PEP_STATUS_OK;
    1.18  }
    1.19  
    1.20 +PEP_STATUS pgp_key_expired(
    1.21 +        PEP_SESSION session,
    1.22 +        const char *fpr,
    1.23 +        bool *expired
    1.24 +    )
    1.25 +{
    1.26 +    PEP_STATUS status = PEP_STATUS_OK;
    1.27 +
    1.28 +    assert(session);
    1.29 +    assert(fpr);
    1.30 +    assert(expired);
    1.31 +
    1.32 +    *expired = false;
    1.33 +
    1.34 +    if (status != PEP_STATUS_OK)
    1.35 +        return status;
    1.36 +
    1.37 +    return PEP_STATUS_OK;
    1.38 +}
    1.39 +