key_renew()
authorVolker Birk <vb@pep-project.org>
Fri, 17 Apr 2015 10:48:31 +0200
changeset 1962d7c5fb43387
parent 195 d20403063ef3
child 197 e6df9f3bbda4
key_renew()
src/pEpEngine.c
src/pEpEngine.h
     1.1 --- a/src/pEpEngine.c	Thu Apr 16 22:17:01 2015 +0200
     1.2 +++ b/src/pEpEngine.c	Fri Apr 17 10:48:31 2015 +0200
     1.3 @@ -897,3 +897,15 @@
     1.4  
     1.5      return session->cryptotech[PEP_crypt_OpenPGP].send_key(session, pattern);
     1.6  }
     1.7 +
     1.8 +DYNAMIC_API PEP_STATUS key_renew(PEP_SESSION session, const char *key_id)
     1.9 +{
    1.10 +    assert(session);
    1.11 +    assert(key_id);
    1.12 +
    1.13 +    if (!(session && key_id))
    1.14 +        return PEP_ILLEGAL_VALUE;
    1.15 +
    1.16 +    return PEP_UNKNOWN_ERROR;
    1.17 +}
    1.18 +
     2.1 --- a/src/pEpEngine.h	Thu Apr 16 22:17:01 2015 +0200
     2.2 +++ b/src/pEpEngine.h	Fri Apr 17 10:48:31 2015 +0200
     2.3 @@ -606,6 +606,15 @@
     2.4      );
     2.5  
     2.6  
     2.7 +// key_renew() - renew an expired key
     2.8 +//
     2.9 +//  parameters:
    2.10 +//      session (in)            session handle
    2.11 +//      key_id (in)             ID of key to renew as UTF-8 string
    2.12 +
    2.13 +DYNAMIC_API PEP_STATUS key_renew(PEP_SESSION session, const char *key_id);
    2.14 +
    2.15 +
    2.16  #ifdef __cplusplus
    2.17  }
    2.18  #endif