src/pgp_netpgp.c
changeset 210 f599bb1ebb90
parent 209 8572f358fb61
child 225 ed16ea1bece7
     1.1 --- a/src/pgp_netpgp.c	Mon Apr 20 22:58:53 2015 +0200
     1.2 +++ b/src/pgp_netpgp.c	Mon Apr 20 23:26:20 2015 +0200
     1.3 @@ -753,3 +753,36 @@
     1.4  
     1.5      return status;
     1.6  }
     1.7 +
     1.8 +PEP_STATUS pgp_renew_key(
     1.9 +        PEP_SESSION session,
    1.10 +        const char *fpr,
    1.11 +        const timestamp *ts
    1.12 +    )
    1.13 +{
    1.14 +    PEP_STATUS status = PEP_STATUS_OK;
    1.15 +    char date_text[12];
    1.16 +
    1.17 +    assert(session);
    1.18 +    assert(fpr);
    1.19 +
    1.20 +    snprintf(date_text, 12, "%.4d-%.2d-%.2d\n", ts->tm_year + 1900,
    1.21 +            ts->tm_mon + 1, ts->tm_mday);
    1.22 +
    1.23 +
    1.24 +        return PEP_UNKNOWN_ERROR;
    1.25 +    return PEP_STATUS_OK;
    1.26 +}
    1.27 +
    1.28 +PEP_STATUS pgp_revoke_key(PEP_SESSION session, const char *fpr)
    1.29 +{
    1.30 +    PEP_STATUS status = PEP_STATUS_OK;
    1.31 +    
    1.32 +    assert(session);
    1.33 +    assert(fpr);
    1.34 +
    1.35 +        return PEP_UNKNOWN_ERROR;
    1.36 +
    1.37 +    return PEP_STATUS_OK;
    1.38 +}
    1.39 +