key_revoke()
authorVolker Birk <vb@pep-project.org>
Fri, 17 Apr 2015 10:51:15 +0200
changeset 197e6df9f3bbda4
parent 196 2d7c5fb43387
child 198 826ec457f252
key_revoke()
src/pEpEngine.c
src/pEpEngine.h
     1.1 --- a/src/pEpEngine.c	Fri Apr 17 10:48:31 2015 +0200
     1.2 +++ b/src/pEpEngine.c	Fri Apr 17 10:51:15 2015 +0200
     1.3 @@ -909,3 +909,14 @@
     1.4      return PEP_UNKNOWN_ERROR;
     1.5  }
     1.6  
     1.7 +DYNAMIC_API PEP_STATUS key_revoke(PEP_SESSION session, const char *key_id)
     1.8 +{
     1.9 +    assert(session);
    1.10 +    assert(key_id);
    1.11 +
    1.12 +    if (!(session && key_id))
    1.13 +        return PEP_ILLEGAL_VALUE;
    1.14 +
    1.15 +    return PEP_UNKNOWN_ERROR;
    1.16 +}
    1.17 +
     2.1 --- a/src/pEpEngine.h	Fri Apr 17 10:48:31 2015 +0200
     2.2 +++ b/src/pEpEngine.h	Fri Apr 17 10:51:15 2015 +0200
     2.3 @@ -615,6 +615,15 @@
     2.4  DYNAMIC_API PEP_STATUS key_renew(PEP_SESSION session, const char *key_id);
     2.5  
     2.6  
     2.7 +// key_revoke() - revoke an expired key
     2.8 +//
     2.9 +//  parameters:
    2.10 +//      session (in)            session handle
    2.11 +//      key_id (in)             ID of key to revoke as UTF-8 string
    2.12 +
    2.13 +DYNAMIC_API PEP_STATUS key_revoke(PEP_SESSION session, const char *key_id);
    2.14 +
    2.15 +
    2.16  #ifdef __cplusplus
    2.17  }
    2.18  #endif