aboutsummaryrefslogtreecommitdiff
path: root/src/common (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-10-27common: const and init list pedantrymoneromooo-monero2-2/+3
2015-09-27dns_utils: fix wrong assertsmoneromooo-monero1-2/+2
Braino.
2015-08-30dns_utils: remove unnecessary string conversionmoneromooo-monero1-5/+2
2015-08-30dns_utils: factor the fetching code for different DNS record typesmoneromooo-monero2-59/+34
2015-08-30dns_utils: simplify string handling and fix leakmoneromooo-monero1-5/+1
2015-08-27dns_utils: add a const where possiblemoneromooo-monero2-2/+2
2015-08-27dns_utils: lock access to the singletonmoneromooo-monero1-0/+4
This avoids races which could result in two objects being created
2015-08-27dns: make ctor privatemoneromooo-monero2-1/+15
This ensures one can't instanciate a DNSResolver object by mistake, but uses the singleton. A separate create static function is added for cases where a new object is explicitely needed.
2015-07-15Add missing file - i18n.cppmoneromooo-monero1-0/+297
2015-07-14Translatable strings for simplewalletmoneromooo-monero2-2/+40
The system is mostly the Qt system, but we don't use Qt to avoid the dependencies. See README.i18n for details.
2015-06-20Set dnssec_valid value correctly in dns_utils; fix address_from_url testRostislav1-3/+3
2015-06-07dns_utils: simpify smart pointer use, and use for url strings toomoneromooo-monero2-39/+46
OK, I admit I wanted to template this struct for fun too.
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni3-0/+84
2015-05-19Allow name@domain.tld for OpenAlias lookupswarptangent2-0/+25
Based on tewinget's update. Make OpenAlias address format independent of existing DNS functions. Add tests. Test: make debug-test cd build/debug/tests/unit_tests # test that regular DNS functions work, including IPv4 lookups. # also test function that converts OpenAlias address format make && ./unit_tests --gtest_filter=DNSResolver* # test that OpenAlias addresses like donate@getmonero.org work from # wallet tools make && ./unit_tests --gtest_filter=AddressFromURL.Success
2015-05-19Revert "Allow name@domain.tld for OpenAlias lookups"warptangent2-25/+14
This reverts commit b18368b635ba08aea541ef52ebc74180822644a2.
2015-04-29Allow name@domain.tld for OpenAlias lookupsThomas Winget2-14/+25
2015-04-10[fix] log level change. compilation: dns, testsrfree2monero1-1/+1
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
2015-04-02Merge pull request #252Riccardo Spagni3-1/+24
618f20c Network 1.7; Quieted the debug a bit. (rfree2monero) 391c7f9 Utils: use const, document dbg. Less default debug (rfree2monero) 44f4234 [fix] mac os x includes std::random... (rfree2monero) 162c993 Network 1.6: network limits, logging, +doxy (rfree2monero) a3b2226 my changelog (rfree2monero) 2900b1e doxygen files (rfree2monero) 1489310 doxygen related tool (rfree2monero) f9dba47 added windows_stream.* console colors (rfree2monero) c511abf remerged; commands JSON. logging upgrade. doxygen (rfree2monero) f79821a fix locking in count-peers thread (2) (rfree2monero) 0198ffb 2014 network limit 1.3 fix log/path/data +utils (rfree2monero) ae2a506 2014 network limit 1.2 +utils +toc -doc -drmonero (rfree2monero) 0f06dca fixed size_t on windows (rfree2monero) 39fc63f removed not needed <netinet/in.h> (rfree2monero) 5ce4256 2014 network limit 1.1 +utils +toc -doc -drmonero (rfree2monero) eabb519 2014 network limit 1.0a +utils +toc -doc -drmonero (rfree2monero)
2015-04-02Fixed DNS resolution bug in WindowsThomas Winget1-4/+2
Due to a bug in unbound, we were passing a string containing a null character to ub_ctx_resolvconf and ub_ctx_hosts rather than a NULL pointer. On *nix this wasn't causing headache, but on Windows this was causing unbound to not correctly load DNS settings from the OS. Note on the bug: in a Windows-specific code branch in the function ub_ctx_hosts(), if the hosts file specified was a NULL pointer, a call to getenv() was stored in a local char* and later freed. This is incorrect, as we do not own that data, and caused the program to crash.
2015-04-01remerged; commands JSON. logging upgrade. doxygenrfree2monero3-1/+24
2015-03-24DNSSEC added (hardcoded key)Thomas Winget1-0/+66
DNSSEC is now implemented with the hardcoded key from unbound. This will need to be not hardcoded in the future, but is okay for now. Unit tests updated for DNSSEC (as well as for the fact that, contrary to previous assumption, example.com does not have a static IP address).
2015-03-20Hopefully fixes build on WindowsThomas Winget2-1/+13
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget4-0/+272
many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
2015-01-02year updated in licenseRiccardo Spagni14-14/+14
2014-10-24cmake: support 2.8.7Ben Boeckel1-1/+1
Older versions of CMake support LINK_{PUBLIC,PRIVATE} while newer versions prefer PUBLIC and PRIVATE instead, but still support the LINK_ prefix.
2014-10-23cmake: handle private vs. public headersBen Boeckel1-2/+10
2014-10-23cmake: refactor common code with librariesBen Boeckel1-9/+1
2014-10-23cmake: put each library into its own directoryBen Boeckel1-0/+64
This cleans up the CMake code and shows patterns more easily (to be refactored in the next commit).
2014-10-06build libunbound from external if no local libunbound or for static buildsRiccardo Spagni1-1/+2
2014-10-03quick hacky fix for broken TXT readsRiccardo Spagni1-1/+9
2014-09-30updated DNSResolver/things that use it for DNSSECThomas Winget2-6/+14
Note: DNSResolver does not yet *use* DNSSEC, but rather this commit is preparation for including DNSSEC validation. The function in src/wallet/wallet2.cpp that uses DNSResolver still needs its parameters updated accordingly.
2014-09-25Revert "low risk, potentially varint overflow bug patched thanks to BBR"Riccardo Spagni1-24/+1
This reverts commit 4e2b2b942daa4206ec44c66e59863670dfe3fde4.
2014-09-24Remove LDNS dep and fix a bug in libunbound const correctness fixThomas Winget2-4/+4
2014-09-24Removed ldns dependencyThomas Winget2-4/+9
ldns dependency was only still around for constants defined in ldns/rr.h, but those constants are RFC specified DNS constants, and to reduce deps have been replicated in dns_utils.h instead of including ldns/rr.h.
2014-09-24low risk, potentially varint overflow bug patched thanks to BBRRiccardo Spagni1-1/+24
2014-09-24libunbound has const correctness issues...Thomas Winget1-5/+19
2014-09-24temp commitThomas Winget1-15/+42
2014-09-23Added function to check syntax of URL for DNS lookupThomas Winget2-8/+44
For now, simply checks for '.' character, but that will be easy to change in the future if necessary/desired.
2014-09-23change to allow (at least a bit) for multiple TXT recordsThomas Winget2-9/+14
2014-09-23Monero addres from DNS TXT record implemented, tests passThomas Winget2-24/+45
Still need to deal with DNSSEC and optional fields in the TXT record.
2014-09-23Use the loop iterator, previous version of me.Thomas Winget1-2/+2
2014-09-23ipv4 and ipv6 resolution workingThomas Winget2-21/+125
IPv4 and IPv6 name resolution working. Unit tests written (and passing). net_node.{h,inl} code modified to use DNS seeds.
2014-09-23Initial commit of DNS codeThomas Winget2-0/+141
2014-09-15Separate testnet default data dirZachary Michaels2-0/+2
2014-09-11HOW DO I ENGLISH?jebes1-1/+1
2014-09-11mispelled brief, corrected itjebes2-14/+14
2014-09-11HOW DO I GIT?jebes1-1/+1
2014-09-11Documented varintjebes4-40/+80
2014-09-09commented util.hjebes2-8/+45
2014-07-23License updated to BSD 3-clausefluffypony11-34/+319
2014-07-01Fix assert bug in base58 encodeZachary Michaels1-1/+1
The previous implementation was almost certainly a typo. full_block_size is the maximum index in the encoded_block_sizes array, and size is used as an index in this array. So now 1 <= size <= full_block_size == 8 instead of 1 <= size <= sizeof(full_block_size) == size_of(size_t) == ? (maybe 4 on 32-bit systems!)
2014-06-12DRY cin input_line (and test replacement of non-DRY usage)Thomas Winget2-0/+15
2014-06-12builds, but doesn't link. other than that, electrum-style recovery ↵Thomas Winget1-0/+6
implemented (but not tested\!)
2014-05-03initial [broken] updatemydesktop3-5/+80
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-0/+2
2014-03-20some fixesAntonio Juarez4-5/+64
2014-03-03moved all stuff to githubAntonio Juarez11-0/+1249