Skip to content
Snippets Groups Projects
  1. Jan 31, 2012
  2. Jan 18, 2012
    • Nick Mathewson's avatar
      Rename nonconformant identifiers. · 26e789fb
      Nick Mathewson authored
      Fixes bug 4893.
      
      These changes are pure mechanical, and were generated with this
      perl script:
      
        /usr/bin/perl -w -i.bak -p
      
        s/crypto_pk_env_t/crypto_pk_t/g;
        s/crypto_dh_env_t/crypto_dh_t/g;
        s/crypto_cipher_env_t/crypto_cipher_t/g;
        s/crypto_digest_env_t/crypto_digest_t/g;
      
        s/aes_free_cipher/aes_cipher_free/g;
        s/crypto_free_cipher_env/crypto_cipher_free/g;
        s/crypto_free_digest_env/crypto_digest_free/g;
        s/crypto_free_pk_env/crypto_pk_free/g;
      
        s/_crypto_dh_env_get_dh/_crypto_dh_get_dh/g;
        s/_crypto_new_pk_env_rsa/_crypto_new_pk_from_rsa/g;
        s/_crypto_pk_env_get_evp_pkey/_crypto_pk_get_evp_pkey/g;
        s/_crypto_pk_env_get_rsa/_crypto_pk_get_rsa/g;
      
        s/crypto_new_cipher_env/crypto_cipher_new/g;
        s/crypto_new_digest_env/crypto_digest_new/g;
        s/crypto_new_digest256_env/crypto_digest256_new/g;
        s/crypto_new_pk_env/crypto_pk_new/g;
      
        s/crypto_create_crypto_env/crypto_cipher_new/g;
      
        s/connection_create_listener/connection_listener_new/g;
        s/smartlist_create/smartlist_new/g;
        s/transport_create/transport_new/g;
      26e789fb
    • Nick Mathewson's avatar
  3. Dec 19, 2011
  4. Dec 10, 2011
  5. Nov 30, 2011
    • Steven Murdoch's avatar
      Make file descriptor type an unsigned integer · a65212e3
      Steven Murdoch authored
      This avoids a warning from gcc (comparison between signed and unsigned
      integer expressions [-Werror=sign-compare]), under Windows
      a65212e3
    • Steven Murdoch's avatar
      Support NAT-PMP on Windows · 5dbfb1b3
      Steven Murdoch authored
      - Link in libws32 and libiphlpapi, needed for libnatpmp (both in
        ./configure and when compiling tor-fw-helper-natpmp.c)
      - Define STATICLIB under Windows, to allow tor-fw-helper-natpmp.c to link
      - Don't include arpa/inet.h which isn't present in Mingw32 and doesn't
        appear to be needed on either Windows or MacOS X
      5dbfb1b3
  6. Nov 25, 2011
  7. Nov 24, 2011
  8. Oct 26, 2011
    • Nick Mathewson's avatar
      Remove the -F option from tor-resolve. · a166f104
      Nick Mathewson authored and Roger Dingledine's avatar Roger Dingledine committed
      It used to mean "Force": it would tell tor-resolve to ask tor to
      resolve an address even if it ended with .onion.  But when
      AutomapHostsOnResolve was added, automatically refusing to resolve
      .onion hosts stopped making sense.  So in 0.2.1.16-rc (commit
      298dc95d), we made tor-resolve happy to resolve anything.
      
      The -F option stayed in, though, even though it didn't do anything.
      Oddly, it never got documented.
      
      Found while fixing GCC 4.6 "set, unused variable" warnings.
      a166f104
  9. Oct 11, 2011
    • Nick Mathewson's avatar
      Fix names of functions that convert strings to addrs · 00b2b69a
      Nick Mathewson authored
      Now let's have "lookup" indicate that there can be a hostname
      resolution, and "parse" indicate that there wasn't.  Previously, we
      had one "lookup" function that did resolution; four "parse" functions,
      half of which did resolution; and a "from_str()" function that didn't
      do resolution.  That's confusing and error-prone!
      
      The code changes in this commit are exactly the result of this perl
      script, run under "perl -p -i.bak" :
      
        s/tor_addr_port_parse/tor_addr_port_lookup/g;
        s/parse_addr_port(?=[^_])/addr_port_lookup/g;
        s/tor_addr_from_str/tor_addr_parse/g;
      
      This patch leaves aton and pton alone: their naming convention and
      behavior is is determined by the sockets API.
      
      More renaming may be needed.
      00b2b69a
  10. Aug 22, 2011
  11. Aug 19, 2011
    • Nick Mathewson's avatar
      Only link ws2_32 and iphlapi on windows. · 269c0b46
      Nick Mathewson authored
      This is a tweak for the tor-fw-helper port to windows.
      269c0b46
    • Steven Murdoch's avatar
      Link and build tor-fw-helper on Windows · 2ad336f9
      Steven Murdoch authored
      - Update configure script to test for libminiupnpc along with the
        libws2_32 and libiphlpapi libraries required by libminiupnpc
      - When building tor-fw-helper, link in libiphlpapi
      - Link in libminiupnpc statically becasue I could not get the DLL
        to link properly
      - Call WSAStartup before doing network operations
      - Fix up a compiler warning about uninitialized backend_state
      
      N.B. The changes to configure.in and Makefile.am will break on non-
      Windows platforms.
      2ad336f9
  12. Aug 01, 2011
  13. Jul 21, 2011
  14. Jul 19, 2011
  15. Jun 21, 2011
  16. May 23, 2011
    • Nick Mathewson's avatar
      Remove the -F option from tor-resolve. · 57810c33
      Nick Mathewson authored
      It used to mean "Force": it would tell tor-resolve to ask tor to
      resolve an address even if it ended with .onion.  But when
      AutomapHostsOnResolve was added, automatically refusing to resolve
      .onion hosts stopped making sense.  So in 0.2.1.16-rc (commit
      298dc95d), we made tor-resolve happy to resolve anything.
      
      The -F option stayed in, though, even though it didn't do anything.
      Oddly, it never got documented.
      
      Found while fixing GCC 4.6 "set, unused variable" warnings.
      57810c33
  17. Jan 03, 2011
  18. Nov 12, 2010
  19. Nov 11, 2010
  20. Sep 30, 2010
  21. Jul 10, 2010
    • Nick Mathewson's avatar
      Rename log.h to torlog.h · 14bc4dcc
      Nick Mathewson authored
      This should make us conflict less with system files named "log.h".
      Yes, we shouldn't have been conflicting with those anyway, but some
      people's compilers act very oddly.
      
      The actual change was done with one "git mv", by editing
      Makefile.am, and running
         find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
      14bc4dcc
  22. May 21, 2010
  23. Apr 14, 2010
    • Sebastian Hahn's avatar
      Add --enable-static-zlib option · 71fb687d
      Sebastian Hahn authored
      Works like the --enable-static-openssl/libevent options. Requires
      --with-zlib-dir to be set. Note that other dependencies might still
      pull in a dynamicly linked zlib, if you don't link them in statically
      too.
      71fb687d
  24. Feb 27, 2010
  25. Feb 22, 2010
Loading