diff options
author | Matt Caswell <matt@openssl.org> | 2019-06-27 10:48:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-07-16 10:16:32 +0100 |
commit | ff64702b3d83d4c77756e0fd7b624e2165dbbdf0 (patch) | |
tree | c46161f5b250c26bec7a5d31973d2f66451c4846 /crypto/include | |
parent | cbfa5b03989ee6b8f5c13c4284d5bae02c562f20 (diff) |
Make the EVP Key Exchange code provider aware
We introduce a new EVP_KEYEXCH type to represent key exchange algorithms
and refactor the existing code to use it where available.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9266)
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/evp_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/include/internal/evp_int.h b/crypto/include/internal/evp_int.h index da4ae0f1fb..71833fa49e 100644 --- a/crypto/include/internal/evp_int.h +++ b/crypto/include/internal/evp_int.h @@ -18,6 +18,11 @@ #define EVP_MD_CTX_FLAG_KEEP_PKEY_CTX 0x0400 struct evp_pkey_ctx_st { + EVP_KEYEXCH *exchange; + void *exchprovctx; + + /* Legacy fields below */ + /* Method associated with this operation */ const EVP_PKEY_METHOD *pmeth; /* Engine that implements this method or NULL if builtin */ |