diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-26 18:05:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-07 07:28:43 -0500 |
commit | 8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22 (patch) | |
tree | 03f567e7ba8d2fb328d6d07dd0c8453036f5f3a6 /src/lib/crypt_ops/crypto_options.inc | |
parent | b06e9d8ad58bfe11d2c1f6a921ba059658a578f2 (diff) | |
download | tor-8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22.tar.gz tor-8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22.zip |
Use new configuration architecture for crypto options
This is a comparatively simple change.
Diffstat (limited to 'src/lib/crypt_ops/crypto_options.inc')
-rw-r--r-- | src/lib/crypt_ops/crypto_options.inc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_options.inc b/src/lib/crypt_ops/crypto_options.inc new file mode 100644 index 0000000000..5bee0daacd --- /dev/null +++ b/src/lib/crypt_ops/crypto_options.inc @@ -0,0 +1,19 @@ + +/** + * @file crypto_options.inc + * @brief Declare configuration options for the crypto_ops module. + **/ + +/** Holds configuration about our cryptography options. */ +BEGIN_CONF_STRUCT(crypto_options_t) + +/** Should we enable extra OpenSSL hardware acceleration (where available)? */ +CONF_VAR(HardwareAccel, BOOL, CFLG_IMMUTABLE, "0") + +/** Optional OpenSSL hardware-acceleration engine name */ +CONF_VAR(AccelName, STRING, CFLG_IMMUTABLE, NULL) + +/** Optional OpenSSL hardware-acceleration engine search directory. */ +CONF_VAR(AccelDir, FILENAME, CFLG_IMMUTABLE, NULL) + +END_CONF_STRUCT(crypto_options_t) |