aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_options.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-11-05 10:04:39 -0500
committerNick Mathewson <nickm@torproject.org>2019-11-07 07:28:43 -0500
commit0d8504e70b0c6ff92f38fc7f4b4c38037d121e69 (patch)
tree527352f2026097898bc4717dee7572d693ac71bb /src/test/test_options.c
parent8cd3e66d93a7b3f61afc3bc0c8868fb50c85af22 (diff)
downloadtor-0d8504e70b0c6ff92f38fc7f4b4c38037d121e69.tar.gz
tor-0d8504e70b0c6ff92f38fc7f4b4c38037d121e69.zip
crypto config: do not change the user's value of HardwareAccel.
We still interpret "AccelName" as turning on the "HardwareAccel" feature, but we no longer modify the user's options here. Fixes bug 32382; bugfix on 0.2.2.1-alpha when we added openssl engine support.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r--src/test/test_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index 6a933bec4f..8aa4bf0906 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -4008,7 +4008,7 @@ test_options_validate__accel(void *ignored)
tdata = get_options_test_data("AccelName foo\n");
ret = options_validate(NULL, tdata->opt, &msg);
tt_int_op(ret, OP_EQ, 0);
- tt_int_op(get_crypto_options(tdata->opt)->HardwareAccel, OP_EQ, 1);
+ tt_int_op(get_crypto_options(tdata->opt)->HardwareAccel, OP_EQ, 0);
tor_free(msg);
free_options_test_data(tdata);