AC_CHECK_FUNCS([OPENSSL_init_ssl OPENSSL_init_crypto])
AC_CHECK_FUNCS([CRYPTO_zalloc])
-AC_CHECK_FUNCS([EVP_PKEY_new_raw_private_key])
+AC_CHECK_FUNCS([EVP_PKEY_new_raw_private_key EVP_PKEY_eq])
AC_CHECK_FUNCS([EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free])
AC_CHECK_FUNCS([EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset EVP_MD_CTX_get0_md])
AC_CHECK_FUNCS([ERR_get_error_all])
ERR_get_error_all(const char **file, int *line, const char **func,
const char **data, int *flags);
#endif /* if !HAVE_ERR_GET_ERROR_ALL */
+
+#if !HAVE_EVP_PKEY_EQ
+#define EVP_PKEY_eq EVP_PKEY_cmp
+#endif
#include "dst_internal.h"
#include "dst_openssl.h"
#include "dst_parse.h"
+#include "openssl_shim.h"
#ifndef NID_X9_62_prime256v1
#error "P-256 group is not known (NID_X9_62_prime256v1)"
DST_RET(false);
}
- status = EVP_PKEY_cmp(pkey1, pkey2);
+ status = EVP_PKEY_eq(pkey1, pkey2);
if (status != 1) {
DST_RET(false);
}
#include "dst_internal.h"
#include "dst_openssl.h"
#include "dst_parse.h"
+#include "openssl_shim.h"
#define DST_RET(a) \
{ \
return (false);
}
- status = EVP_PKEY_cmp(pkey1, pkey2);
+ status = EVP_PKEY_eq(pkey1, pkey2);
if (status == 1) {
return (true);
}
if (pubpkey == NULL) {
return (ISC_R_SUCCESS);
}
- if (EVP_PKEY_cmp(pkey, pubpkey) == 1) {
+ if (EVP_PKEY_eq(pkey, pubpkey) == 1) {
return (ISC_R_SUCCESS);
}
return (ISC_R_FAILURE);