if (md_ctx == NULL)
goto err;
- if (EVP_DigestInit_ex(md_ctx, md, NULL /* engine */) <= 0)
+ if (EVP_DigestInit_ex(md_ctx, md, NULL) <= 0)
goto err;
if (is_sslv3) {
/* We repurpose |hmac_pad| to contain the SSLv3 pad2 block. */
return OSSL_RECORD_RETURN_FATAL;
}
- /*
- * The cipher we actually ended up using in the EVP_CIPHER_CTX may be
- * different to that in ciph if we have an ENGINE in use
- */
if (EVP_CIPHER_get0_provider(EVP_CIPHER_CTX_get0_cipher(ciph_ctx)) != NULL
&& !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) {
/* ERR_raise already called */
return OSSL_RECORD_RETURN_FATAL;
}
- /*
- * The cipher we actually ended up using in the EVP_CIPHER_CTX may be
- * different to that in ciph if we have an ENGINE in use
- */
if (EVP_CIPHER_get0_provider(EVP_CIPHER_CTX_get0_cipher(ciph_ctx)) != NULL
&& !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) {
/* ERR_raise already called */
#include <ctype.h>
#include <openssl/objects.h>
#include <openssl/comp.h>
-#include <openssl/engine.h>
#include <openssl/crypto.h>
#include <openssl/conf.h>
#include <openssl/trace.h>
#define ssl_cipher_info_lookup(table, x) \
ssl_cipher_info_find(table, OSSL_NELEM(table), x)
-/*
- * PKEY_TYPE for GOST89MAC is known in advance, but, because implementation
- * is engine-provided, we'll fill it only if corresponding EVP_PKEY_METHOD is
- * found
- */
static const int default_mac_pkey_id[SSL_MD_NUM_IDX] = {
/* MD5, SHA, GOST94, MAC89 */
EVP_PKEY_HMAC, EVP_PKEY_HMAC, EVP_PKEY_HMAC, NID_undef,
} else {
if (i == SSL_ENC_NULL_IDX) {
/*
- * We assume we don't care about this coming from an ENGINE so
- * just do a normal EVP_CIPHER_fetch instead of
- * ssl_evp_cipher_fetch()
+ * This does not need any special handling. Use EVP_CIPHER_fetch()
+ * directly.
*/
*enc = EVP_CIPHER_fetch(ctx->libctx, "NULL", ctx->propq);
if (*enc == NULL)
#endif
#include <stdio.h>
#include <openssl/rand.h>
-#include <openssl/engine.h>
#include "internal/refcount.h"
#include "internal/cryptlib.h"
#include "internal/ssl_unwrap.h"
goto err;
}
- /* Reuse EVP_PKEY_CTRL_SET_IV, make choice in engine code depending on size */
if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT,
EVP_PKEY_CTRL_SET_IV, 32, rnd_dgst) <= 0) {
SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_LIBRARY_BUG);