summaryrefslogtreecommitdiffstats
path: root/crypto/include/internal/evp_int.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-10-09 15:21:11 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-10-12 00:03:32 +0100
commitd19b01ad79f9e2aac5c87496b5ca5f80016daeb7 (patch)
treec99cc7d66ad3585a0008e8e477c757b5388a5f31 /crypto/include/internal/evp_int.h
parent918a27facd3558444c69b1edbedb49478e82dff5 (diff)
Add EVP_PKEY_set1_engine() function.
Add an ENGINE to EVP_PKEY structure which can be used for cryptographic operations: this will typically be used by an HSM key to redirect calls to a custom EVP_PKEY_METHOD. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4503)
Diffstat (limited to 'crypto/include/internal/evp_int.h')
-rw-r--r--crypto/include/internal/evp_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/include/internal/evp_int.h b/crypto/include/internal/evp_int.h
index ccfa97ce35..f409400285 100644
--- a/crypto/include/internal/evp_int.h
+++ b/crypto/include/internal/evp_int.h
@@ -369,6 +369,7 @@ struct evp_pkey_st {
CRYPTO_REF_COUNT references;
const EVP_PKEY_ASN1_METHOD *ameth;
ENGINE *engine;
+ ENGINE *pmeth_engine; /* If not NULL public key ENGINE to use */
union {
void *ptr;
# ifndef OPENSSL_NO_RSA