summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2008-12-29Use a consistent naming standard for header file guard macros, taking care ↵Nick Mathewson
not to collide with any system headers. This tripped us up on Android. svn:r17805
2008-12-29Use RSA_generate_key_ex where available.Nick Mathewson
svn:r17804
2008-12-29Fix bug in recent address.c patch: actually set the value of address * to ↵Nick Mathewson
0.0.0.0 as we did before. This makes CMP_EXACT comparisons with bitmask 0 work on address * again. svn:r17801
2008-12-27Fix compilation under gethostbyname-based systems.Nick Mathewson
svn:r17800
2008-12-26Refactor tor_addr_t manipulation functions so that as few as possible look ↵Nick Mathewson
at the tor_addr_t representation. svn:r17790
2008-12-26get_interface_addr6(), and by extension get_interface_addr(), were pretty ↵Nick Mathewson
borked. Copying a tor_addr_t from a sockaddr_storage using memcpy is a poor notion. svn:r17789
2008-12-26Refactor tor_addr_compare_masked() so that CMP_SEMANTIC makes more sense, ↵Nick Mathewson
and has decent semantics for maskbits; and so that CMP_EXACT works right for bits==0. svn:r17788
2008-12-26Document our Bloom filter parameter choices.Nick Mathewson
svn:r17785
2008-12-26Add more missing documentation, and correct an error in container.c ↵Nick Mathewson
documentation: Don't introduce two parameters called n when you're calling an algorithm O(n). svn:r17783
2008-12-25some fixes i found in my sandboxRoger Dingledine
svn:r17771
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-23Properly zero-out addresses when setting them. Probably this was not ↵Nick Mathewson
hurting anything. svn:r17749
2008-12-22Make freelist_len in memarea.c static; document a few variables.Nick Mathewson
svn:r17741
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-19Move in-addr.arpa parsing and generation into address.c, and simplify the ↵Nick Mathewson
code that does it elsewhere. Incidentally, this lets exit servers answer requests for ip6.arpa addresses. svn:r17707
2008-12-19Expose hex_decode_digit from util.cNick Mathewson
svn:r17706
2008-12-18Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson
per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow. svn:r17690
2008-12-18One log.c XXX021 was a misunderstanding. Also, clip log messages passed to ↵Nick Mathewson
syslog to their maximum length when there is a maximum. svn:r17688
2008-12-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686
2008-12-18Ben confirms that the MUST in rfc2631 is only for compatibility with X9.42, ↵Nick Mathewson
and isn't actually a security thing. svn:r17685
2008-12-18Log an error on win32 if directory listing fails.Nick Mathewson
svn:r17684
2008-12-18Fix a small memory leak of around 32 bytes per TLS connection opened. Bugfix ↵Nick Mathewson
on 0.2.1.1-alpha. svn:r17678
2008-12-18Fix bug 889: share deep-copied keys between threads to avoid races in ↵Nick Mathewson
reference counts. Bugfix on 0.1.0.1-rc. svn:r17672
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-12-17Use ctags and a python script to find identifiers that are never used ↵Nick Mathewson
anywhere, and remove the ones that we really want gone. svn:r17651
2008-12-11Lower sprintf buffer max to ~SSIZE_T_MAX from SIZE_T_CEILING, since we need ↵Nick Mathewson
to compare it to a signed int. svn:r17600
2008-12-11Remove some cargo-cult gcc hacks around tor_assert and predict_unlikely; ↵Nick Mathewson
instead, use the standard convert-to-boolean hack of "svn st" svn:r17597
2008-12-11Change test_memeq macro to not leak memory. Addresses coverity CID 47.Nick Mathewson
svn:r17577
2008-12-09Better error message when told to setuid to ourself.Nick Mathewson
svn:r17543
2008-12-08Compile without warnings on mingw.tor-0.2.1.8-alphaNick Mathewson
svn:r17522
2008-12-05Try to fix windows mmap code.Nick Mathewson
svn:r17493
2008-12-05Simplify mmap object layout to avoid confusing static analysis tools, and us ↵Nick Mathewson
too. svn:r17490
2008-12-05Fix a hard-to-trigger memory leak in log_credential status. Found by ↵Nick Mathewson
Coverity scan. CID 349. svn:r17484
2008-12-02Do not use O_APPEND on fd-based operations that do not really want it; have ↵Nick Mathewson
them just lseek instead. svn:r17460
2008-12-02style cleanupRoger Dingledine
svn:r17457
2008-12-02Change logging code to use fds instead of stdio. Fixes bug 861, and ↵Nick Mathewson
probably makes logging slightly faster. Not a backport candidate: bug 861 is too obscure and harmless. svn:r17456
2008-12-02Add two lseek wrappers to compat.[ch]: one to return current fd position, ↵Nick Mathewson
and one to move the fd to the end of the file. svn:r17454
2008-12-02Define socklen_t before using it in compat.hNick Mathewson
svn:r17444
2008-11-26Revert my older supposed gcc-4.4 warning workaround. GCC was not being ↵Nick Mathewson
needlessly prissy; it was hinting at the wrongly pure smartlist_bsearch_idx. svn:r17396
2008-11-26Stop marking bsearch_idx as pure; it is not.Nick Mathewson
svn:r17393
2008-11-26Cast uid_t and gid_t to unsigned before passing to printf %u.Nick Mathewson
svn:r17392
2008-11-26Use fcntl for file locking when flock() is not available.Nick Mathewson
svn:r17391
2008-11-22Resolve a warning under gcc 4.4 trunk.Nick Mathewson
svn:r17357
2008-11-17Update _log_global_min_severity after switch_logs_debug(), so that USR2 will ↵Nick Mathewson
work again. Bugfix on 0.1.2.8-beta. Spotted by Geoff Down. svn:r17317
2008-11-12define get_uint8 and set_uint8 macros to make code cleaner.Nick Mathewson
svn:r17261
2008-11-11apply sebastian's fix for bug 859. Apparently on win32 one must lock at ↵Nick Mathewson
least one byte when locking, but locking a nonexistant byte is okay. ) svn:r17244
2008-11-10Document a couple of functions.Nick Mathewson
svn:r17239