src/pgp_gpg_internal.h
branchgnupg-2.1
changeset 1914 e40bb1f761fe
parent 1639 be84d676f3ef
child 1925 bee52dae2cb9
     1.1 --- a/src/pgp_gpg_internal.h	Mon Jul 10 18:28:01 2017 +0200
     1.2 +++ b/src/pgp_gpg_internal.h	Wed Jul 12 14:01:26 2017 +0200
     1.3 @@ -82,6 +82,15 @@
     1.4  typedef gpgme_ssize_t (*gpgme_io_write_t)(int fd, const void *buffer,
     1.5          size_t count);
     1.6  
     1.7 +#ifdef GPGME_VERSION_NUMBER 
     1.8 +#if (GPGME_VERSION_NUMBER >= 0x010700)
     1.9 +typedef gpgme_error_t(*gpgme_op_createkey_t)(gpgme_ctx_t CTX, 
    1.10 +    const char *USERID, const char *ALGO, unsigned long RESERVED, 
    1.11 +    unsigned long EXPIRES, gpgme_key_t EXTRAKEY, unsigned int FLAGS);
    1.12 +#endif
    1.13 +#endif
    1.14 +
    1.15 +
    1.16  struct gpg_s {
    1.17      const char * version;
    1.18      gpgme_check_version_t gpgme_check;
    1.19 @@ -113,6 +122,11 @@
    1.20      gpgme_get_key_t gpgme_get_key;
    1.21      gpgme_op_genkey_t gpgme_op_genkey;
    1.22      gpgme_op_genkey_result_t gpgme_op_genkey_result;
    1.23 +#ifdef GPGME_VERSION_NUMBER 
    1.24 +#if (GPGME_VERSION_NUMBER >= 0x010700)    
    1.25 +    gpgme_op_createkey_t gpgme_op_createkey;
    1.26 +#endif
    1.27 +#endif    
    1.28      gpgme_op_delete_t gpgme_op_delete;
    1.29      gpgme_op_import_t gpgme_op_import;
    1.30      gpgme_op_import_result_t gpgme_op_import_result;