src/pgp_gpg.h
changeset 24 50887c6ab78f
child 49 9143054c0213
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/pgp_gpg.h	Mon Sep 01 17:44:19 2014 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +#pragma once
     1.5 +
     1.6 +#include "pEpEngine.h"
     1.7 +
     1.8 +PEP_STATUS pgp_init(PEP_SESSION session);
     1.9 +void pgp_release(PEP_SESSION session);
    1.10 +
    1.11 +PEP_STATUS pgp_decrypt_and_verify(
    1.12 +    PEP_SESSION session, const char *ctext, size_t csize,
    1.13 +    char **ptext, size_t *psize, stringlist_t **keylist
    1.14 +    );
    1.15 +
    1.16 +PEP_STATUS pgp_encrypt_and_sign(
    1.17 +    PEP_SESSION session, const stringlist_t *keylist, const char *ptext,
    1.18 +    size_t psize, char **ctext, size_t *csize
    1.19 +    );
    1.20 +
    1.21 +PEP_STATUS pgp_verify_text(
    1.22 +    PEP_SESSION session, const char *text, size_t size,
    1.23 +    const char *signature, size_t sig_size, stringlist_t **keylist
    1.24 +    );
    1.25 +
    1.26 +PEP_STATUS pgp_delete_keypair(PEP_SESSION session, const char *fpr);
    1.27 +
    1.28 +PEP_STATUS pgp_export_key(
    1.29 +    PEP_SESSION session, const char *fpr, char **key_data, size_t *size
    1.30 +    );
    1.31 +
    1.32 +PEP_STATUS pgp_find_keys(
    1.33 +    PEP_SESSION session, const char *pattern, stringlist_t **keylist
    1.34 +    );
    1.35 +
    1.36 +PEP_STATUS pgp_generate_keypair(
    1.37 +    PEP_SESSION session, pEp_identity *identity
    1.38 +    );
    1.39 +
    1.40 +PEP_STATUS pgp_get_key_rating(
    1.41 +    PEP_SESSION session,
    1.42 +    const char *fpr,
    1.43 +    PEP_comm_type *comm_type
    1.44 +    );
    1.45 +
    1.46 +PEP_STATUS pgp_import_key(PEP_SESSION session, const char *key_data, size_t size);
    1.47 +
    1.48 +PEP_STATUS pgp_recv_key(PEP_SESSION session, const char *pattern);
    1.49 +
    1.50 +PEP_STATUS pgp_send_key(PEP_SESSION session, const char *pattern);