]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix-ups for dynamic OpenSSL engine patch.
authorNick Mathewson <nickm@torproject.org>
Sun, 31 May 2009 17:36:18 +0000 (13:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 31 May 2009 17:36:18 +0000 (13:36 -0400)
Include a changelog, and don't try to compare strings with !=.

ChangeLog
src/or/config.c

index ee9f814f5a86dd83a245b388426bf0d1c38803a9..ff01403b78b80df89ba3dcc81ba1b16fabd2d191 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 Changes in version 0.2.2.1-alpha - 2009-??-??
-  o Minor features
+  o Major features:
+    - Add support for dynamic OpenSSL hardware crypto acceleration engines
+      via new AccelName and AccelDir options.
+
+  o Minor features:
     - New --digests command-line switch to output the digests of the
       source files Tor was built with.
     - The "torify" script now uses torsocks where available.
index 0d176670e44ef6e90c755c1e25208ce5d0bf320c..dea76391d1f93a0c84b046e0008696d7d234a897 100644 (file)
@@ -3671,8 +3671,8 @@ options_transition_allowed(or_options_t *old, or_options_t *new_val,
   }
 
   if ((old->HardwareAccel != new_val->HardwareAccel)
-      || (old->AccelName != new_val->AccelName)
-      || (old->AccelDir != new_val->AccelDir)) {
+      || !opt_streq(old->AccelName, new_val->AccelName)
+      || !opt_streq(old->AccelDir, new_val->AccelDir)) {
     *msg = tor_strdup("While Tor is running, changing OpenSSL hardware "
                       "acceleration engine is not allowed.");
     return -1;