Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Beraud
0e865976f9
InfoHash: unify with Hash<N>
2017-11-02 14:28:09 -04:00
Adrien Beraud
a82f575232
NodeExport: add ostream operator
2017-08-30 10:48:49 +02:00
Adrien Béraud
1b9e9452c4
NodeExport: add msgpack serialization
2017-08-28 12:02:09 -04:00
Pedro Moreira
ee883492ee
Avoid dereferencing an iterator to 'end()'
...
*h.end() only works on VS 2015 with
_SECURE_SCL=0
_ITERATOR_DEBUG_LEVEL=0
Also, if these flags are used when compiling opendht, it seems that any client program that wants to link against opendht also needs the same flags enabled, which is a terrible requirement to force on a client.
The proposed change makes the code a bit cleaner and doesn't require any preprocessor tricks.
2017-06-20 13:19:29 +02:00
Adrien Beraud
9d75ed14b4
infohash: add to_c_str(), improve toString() performance
2017-04-10 15:48:04 +02:00
Adrien Beraud
fcca618c48
infohash: improve getRandom performance
...
Generate random hash in 32 bits chunks
instead of 8 bits chunks.
2017-04-10 15:48:04 +02:00
Adrien Beraud
73bcebf355
license cleanup
2017-04-10 01:43:20 +02:00
Adrien Beraud
4970a2aee5
infohash: throw exception with error message
2017-04-05 18:15:02 +02:00
Simon Désaulniers
b03a8b5b50
update license notice (2017)
2017-01-13 17:27:29 -05:00
Adrien Béraud
2759a136df
infohash: add istream operator overload
2016-08-16 10:27:31 -04:00
Andreas Traczyk
9e461e0960
microsoft compiler support
2016-06-02 12:17:09 -04:00
Simon Désaulniers
4b13fcac70
fixing various compilation errors
2016-05-02 15:25:14 -04:00
Simon Désaulniers
0f94e0de0c
moved infohash constexpr where appropriate
2016-05-02 15:25:14 -04:00
Adrien Béraud
e00c8e9598
update copyright headers for 2016
2016-01-07 18:02:35 -05:00
Adrien Béraud
7e346cfcb8
update license terms
...
* removed OpenSSL exception
(OpenDHT doesn't make use of OpenSSL)
* properly capitalize "Savoir-faire Linux"
2015-11-08 16:06:30 -05:00
Adrien Béraud
948475301e
infohash: add getRandom()
2015-08-04 14:02:04 -04:00
Adrien Béraud
d2c57b867d
update copyright headers
2015-07-10 23:25:43 -04:00
Guillaume Roguez
b50f368dc8
infohash: fix buffer-overflow
...
Fix buffer-overflow occuring in InfoHash(const std::string&)
constructor.
2015-05-12 22:50:55 -04:00
Adrien Béraud
5eeaa6b6d3
fix buffer overflow on Win32
2015-04-03 01:01:17 -04:00
Adrien Béraud
d436afccb5
infohash: fill with 0 when provided data is not long enough
2014-12-07 18:18:32 -05:00
Adrien Béraud
f5aaaf8b49
add missing headers
2014-12-07 16:26:12 -05:00
Adrien Béraud
151d31411a
Add initial code
2014-11-20 01:42:44 -05:00