Browse Source

Adapt to EVP_MD_CTX new API to support openssl-1.1

Signed-off-by: Eduardo Barretto <ebarretto@linux.vnet.ibm.com>
master
Eduardo Barretto 5 years ago
committed by Eduardo Barretto
parent
commit
09e6cfd49e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/e_pkcs11.c

+ 4
- 0
src/e_pkcs11.c View File

@ -238,7 +238,11 @@ struct pkcs11_digest_ctx {
/********/
#define CIPHER_DATA(ctx) ((struct token_session *)(ctx->cipher_data))
#ifdef OLDER_OPENSSL
#define MD_DATA(ctx) ((struct pkcs11_digest_ctx *)(ctx->md_data))
#else
#define MD_DATA(ctx) ((struct pkcs11_digest_ctx *)(EVP_MD_CTX_md_data(ctx)))
#endif
static int num_cipher_nids = 0;
static int num_digest_nids = 0;


Loading…
Cancel
Save