src/cryptotech.c
changeset 23 dba569e54163
child 24 50887c6ab78f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/cryptotech.c	Mon Sep 01 13:02:23 2014 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +#include "cryptotech.h"
     1.5 +
     1.6 +#include <stdlib.h>
     1.7 +#include <memory.h>
     1.8 +#include <assert.h>
     1.9 +
    1.10 +PEP_STATUS init_cryptotech(PEP_cryptotech_t *cryptotech)
    1.11 +{
    1.12 +    assert(PEP_crypt__count == 2);
    1.13 +    memset(cryptotech, 0, sizeof(PEP_cryptotech_t) * PEP_crypt__count);
    1.14 +
    1.15 +    cryptotech[0].id = PEP_crypt_none;
    1.16 +
    1.17 +    cryptotech[1].id = PEP_crypt_OpenPGP;
    1.18 +    cryptotech[1].decrypt_and_verify = decrypt_and_verify;
    1.19 +    cryptotech[1].encrypt_and_sign = encrypt_and_sign;
    1.20 +    cryptotech[1].verify_text = verify_text;
    1.21 +
    1.22 +    return PEP_STATUS_OK;
    1.23 +}