Browse Source

One last fix for a warning on non-EC systems

Nick Mathewson 11 years ago
parent
commit
68dae4cf35
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/tortls.c

+ 2 - 0
src/common/tortls.c

@@ -1386,6 +1386,8 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime,
       SSL_CTX_set_tmp_ecdh(result->ctx, ec_key);
     EC_KEY_free(ec_key);
   }
+#else
+  (void)flags;
 #endif
   SSL_CTX_set_verify(result->ctx, SSL_VERIFY_PEER,
                      always_accept_verify_cb);