Refactor the dependency between tortls and crypto_dh.
commit32bbc8f6b5e7d964439c6ba91f87f7d5fba673cc
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Jul 2018 15:23:53 +0000 (17 11:23 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2018 23:46:00 +0000 (31 19:46 -0400)
tree7256e656df93d19212427ac9ab30bbc6715dd3b3
parentac9a470c641fd3ba826cdad07b1a7a495c00acba
Refactor the dependency between tortls and crypto_dh.

We only ever need this to get us a DH ephemeral key object,
so make a function that does just that.
src/lib/crypt_ops/crypto_dh.h
src/lib/crypt_ops/crypto_dh_openssl.c
src/lib/tls/tortls.c