diff options
author | Richard Levitte <levitte@openssl.org> | 2020-10-15 07:10:29 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-10-19 12:14:11 +0200 |
commit | 0ba71d6a63add7efb244965c0f18502bd786a0f7 (patch) | |
tree | 95c205161b20599ac718a87645b9003c1832d579 /crypto/dh/dh_lib.c | |
parent | 6c8149df1fb6fce50a914a70040955d3512b0bd6 (diff) |
DH: make the private key length importable / exportable
The DH private key length, which is an optional parameter, wasn't
properly imported / exported between legacy and provider side
implementations.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13166)
Diffstat (limited to 'crypto/dh/dh_lib.c')
-rw-r--r-- | crypto/dh/dh_lib.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index 94978a2cb2..e6eba34ac9 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -325,22 +325,3 @@ int dh_get0_nid(const DH *dh) { return dh->params.nid; } - -int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[]) -{ - int ret; - FFC_PARAMS *ffc; - - if (dh == NULL) - return 0; - ffc = dh_get0_params(dh); - if (ffc == NULL) - return 0; - - ret = ossl_ffc_params_fromdata(ffc, params); - if (ret) { - dh_cache_named_group(dh); - dh->dirty_cnt++; - } - return ret; -} |