From 8b84b075ff065554c0cdd1086950f1a8614d93a4 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 7 Jul 2019 10:56:46 +0200 Subject: Adapt DH to use with KEYMGMT The biggest part in this was to move the key->param builder from EVP to the DH ASN.1 method, and to implement the KEYMGMT support in the provider DH. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9394) --- crypto/dh/dh_asn1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/dh/dh_asn1.c') diff --git a/crypto/dh/dh_asn1.c b/crypto/dh/dh_asn1.c index aabdfa8..71379d7 100644 --- a/crypto/dh/dh_asn1.c +++ b/crypto/dh/dh_asn1.c @@ -27,6 +27,8 @@ static int dh_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, DH_free((DH *)*pval); *pval = NULL; return 2; + } else if (operation == ASN1_OP_D2I_POST) { + ((DH *)*pval)->dirty_cnt++; } return 1; } -- cgit v1.1