Ticket #63854: dnssec_sign.c.patch

File dnssec_sign.c.patch, 913 bytes (added by marka63, 3 years ago)

dnssec_sign.c patch

  • dnssec_sign.c

    old new  
    413413{
    414414        EC_KEY* ec;
    415415        const EC_GROUP* g;
    416 #ifdef HAVE_EVP_PKEY_BASE_ID
     416#if defined(EVP_PKEY_base_id) || defined(HAVE_EVP_PKEY_BASE_ID)
    417417        if(EVP_PKEY_base_id(pkey) != EVP_PKEY_EC)
    418418                return 0;
    419419#else
     
    529529#ifdef USE_DSA
    530530#ifndef S_SPLINT_S
    531531        /* unfortunately, OpenSSL output is different from DNS DSA format */
    532 # ifdef HAVE_EVP_PKEY_BASE_ID
     532# if defined(EVP_PKEY_base_id) || defined(HAVE_EVP_PKEY_BASE_ID)
    533533        if (EVP_PKEY_base_id(key) == EVP_PKEY_DSA) {
    534534# else
    535535        if (EVP_PKEY_type(key->type) == EVP_PKEY_DSA) {
     
    541541#endif
    542542#if defined(USE_ECDSA)
    543543        if(
    544 #  ifdef HAVE_EVP_PKEY_BASE_ID
     544#  if defined(EVP_PKEY_base_id) || defined(HAVE_EVP_PKEY_BASE_ID)
    545545                EVP_PKEY_base_id(key)
    546546#  else
    547547                EVP_PKEY_type(key->type)