diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-07 10:56:46 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-07-23 19:43:09 +0200 |
commit | 8b84b075ff065554c0cdd1086950f1a8614d93a4 (patch) | |
tree | 504e19c43e2f8313665156f2220539830dece99d /crypto/dh/dh_asn1.c | |
parent | 037439c46addc62130617bbba8c5e58e1548bfd8 (diff) |
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 <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9394)
Diffstat (limited to 'crypto/dh/dh_asn1.c')
-rw-r--r-- | crypto/dh/dh_asn1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/dh/dh_asn1.c b/crypto/dh/dh_asn1.c index aabdfa8360..71379d73bb 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; } |