diff options
author | Adam Langley <agl@google.com> | 2014-09-05 17:04:51 -0700 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-09-18 22:38:11 +0000 |
commit | bed8ce78f001c600a143966b932f8e587c35e573 (patch) | |
tree | 543a11672b14d1425a80152f24b36243e4b6c42e /include/openssl/dsa.h | |
parent | d7c5368a0f67e8f393384170fe230bf9f598f4cb (diff) | |
download | boringssl-bed8ce78f001c600a143966b932f8e587c35e573.zip boringssl-bed8ce78f001c600a143966b932f8e587c35e573.tar.gz boringssl-bed8ce78f001c600a143966b932f8e587c35e573.tar.bz2 |
Add misc functions for easier porting.
Android requested that the wpa_supplicant go upstream. This change adds
some dummy functions and reinstates DSA_dup_DH in order to make the diff
smaller and easier for upstream.
Change-Id: I77ac271b8652bae5a0bbe16afde51d9096f3dfb5
Reviewed-on: https://boringssl-review.googlesource.com/1740
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/dsa.h')
-rw-r--r-- | include/openssl/dsa.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h index c8156fa..5e71ae2 100644 --- a/include/openssl/dsa.h +++ b/include/openssl/dsa.h @@ -291,6 +291,14 @@ OPENSSL_EXPORT int DSA_sign_setup(const DSA *dsa, BN_CTX *ctx, BIGNUM **out_kinv, BIGNUM **out_r); +/* Conversion. */ + +/* DSA_dup_DH returns a |DH| constructed from the parameters of |dsa|. This is + * sometimes needed when Diffie-Hellman parameters are stored in the form of + * DSA parameters. It returns an allocated |DH| on success or NULL on error. */ +OPENSSL_EXPORT DH *DSA_dup_DH(const DSA *dsa); + + /* ex_data functions. * * These functions are wrappers. See |ex_data.h| for details. */ |