Commit Graph

34 Commits

Author SHA1 Message Date
Marcel Raad
b5191dde6f sockets: fix Windows 2000 build (#450)
Commit 4630a5dab6 broke compilation for
Windows 2000 and earlier as getaddrinfo was introduced in Windows XP.
Fix this by including <wspiapi.h> when targeting Windows 2000 and
earlier, which falls back to an inline implementation of getaddrinfo
when necessary.
Some MinGW flavors still target Windows 2000 by default.

Ref:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520.aspx,
section "Support for getaddrinfo on Windows 2000 and older versions"
2017-07-28 15:14:59 -04:00
denisbider
111db9cf9d WSAStringToAddress => WSAStringToAddressA
Issue #385
2017-03-07 20:51:00 -06:00
Jeffrey Walton
5efb019d8b
Add C++ nullptr support (Issue 383) 2017-03-01 06:10:06 -05:00
Jeffrey Walton
81b1a18063
Change file preamble to include "originally written by Wei Dai"
We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
2017-01-27 07:05:45 -05:00
Ralph Tandetzky
35a2ef10a2 Fix: GCC warning "type qualifiers ignored on function return type".
This pedantic message appeared all over the code. Also removed one warning about an unused variable in release build.
2016-12-01 15:37:04 +01:00
Jeffrey Walton
0e82232d1d
Fix "WSAStringToAddress was not declared in this scope" on Cygwin (Issue 322) 2016-10-14 03:48:51 -04:00
Jeffrey Walton
1e3878751b
Ensure NULL terminator for VS2005 and below 2016-10-10 15:57:21 -04:00
Jeffrey Walton
e227ddd09a Revert "Ensure NULL terminator for VS2005 and below"
This reverts commit 1f779dec2a. We needed '\0', not '0'.
2016-10-10 15:56:22 -04:00
Jeffrey Walton
1f779dec2a
Ensure NULL terminator for VS2005 and below 2016-10-10 15:55:15 -04:00
Jeffrey Walton
ecb62a9311
Provide temporary buffer for WSAStringToAddress
Also see http://stackoverflow.com/q/39952781
2016-10-10 13:56:52 -04:00
Jeffrey Walton
818a4ea631
Make inet_pton failures non-fatal 2016-10-10 07:02:57 -04:00
Jeffrey Walton
4630a5dab6
Remove reliance on _WINSOCK_DEPRECATED_NO_WARNINGS (Issue 19) 2016-10-10 04:11:36 -04:00
Jeffrey Walton
8d840ecd8e
Clear Coverity "Missing break in switch (MISSING_BREAK)"
CID 147882, 147880, 147879, 147876
2016-10-01 00:51:33 -04:00
Jeffrey Walton
11fc3df369
Coverity finding CID 148134: Uninitialized scalar field (UNINIT_CTOR) (Issue 312) 2016-09-29 22:34:33 -04:00
Jeffrey Walton
399a1546de Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
2016-09-16 11:27:15 -04:00
Jeffrey Walton
325ae3d93b Cleared "Local variable is initialized but not referenced" in MSC 2016-07-03 18:54:57 -04:00
Jeffrey Walton
0226b2b784 Fix "u_short was not declared in this scope" (Issue 187) 2016-06-12 23:54:42 -04:00
Jeffrey Walton
d294b4290b Add changes for Windows Sotre that went missing with my clumsy Git skills 2016-05-09 03:07:57 -04:00
Jeffrey Walton
500c312a58 Add missing header for Windows 8, Windows Server 2012, and Windows Phone 8 2016-04-27 22:45:34 -04:00
Jeffrey Walton
ac386cf0d7 Explicitly unpoison the result of FD_ZERO 2016-02-26 22:59:36 -05:00
Jeffrey Walton
be491ef007 Cleared -Wcast-align (Issue 122) 2016-01-25 09:48:26 -05:00
Jeffrey Walton
48809d4e85 CRYPTOPP 5.6.3 RC6 checkin 2015-11-05 01:59:46 -05:00
Jeffrey Walton
185a2c8e83 Used pragmas to disable the deprecated warnings under Visual Studio rather than _WINSOCK_DEPRECATED_NO_WARNINGS. Using _WINSOCK_DEPRECATED_NO_WARNINGS could cross-pollintae out of the library and into user code 2015-07-27 19:05:53 -04:00
Jeffrey Walton
b7de164d62 Cut-in CRYPTOPP_ASSERT in all remaining header and source files 2015-07-26 16:03:14 -04:00
Jeffrey Walton
7b64ca489a Added "trap.h" include for header and source files that assert 2015-07-26 15:51:16 -04:00
Jeffrey Walton
cf43ed07e3 Revert "Cleared -Wreorder from GCC 4.8 on MinGW"
This reverts commit a9082aeee0. While it cleared the issue on MinGW, it introduced reordering issues on BSDs, Linux and OS X.
2015-07-20 00:13:56 -04:00
Jeffrey Walton
a9082aeee0 Cleared -Wreorder from GCC 4.8 on MinGW 2015-07-19 22:34:20 -04:00
Jeffrey Walton
54bd52d11f Cleared signed/unsigned warning 2015-06-08 04:00:20 -04:00
Jeffrey Walton
883c38a314 Cleared unknown pragma warning with -Wall 2015-06-08 02:26:16 -04:00
weidai
0e4de41f88 fix SocketSender::EofSent 2006-06-09 07:15:06 +00:00
weidai
6aacd0a0de merge in changes by denis bider and fix compile on gcc 3.4.4 and MSVC 6 2006-04-06 21:20:25 +00:00
weidai
1db8ea5084 port to MSVC .NET 2005 beta 2 2005-07-12 04:23:32 +00:00
weidai
6c4437d03d sync with private branch 2003-06-06 02:34:03 +00:00
weidai
a3b6ece7ab Initial revision 2002-10-04 17:31:41 +00:00