- 01 Jul, 2015 6 commits
-
-
Manuel Pégourié-Gonnard authored
Known to fail on VMs (such as the buildbots), see eg http://blog.badtrace.com/post/rdtsc-x86-instruction-to-detect-vms/
-
Manuel Pégourié-Gonnard authored
This is particularly problematic when calling FD_SET( -1, ... ), but let's check it in all functions. This was introduced with the new API and the fact the net_free() now sets the internal fd to -1 in order to mark it as closed: now using this information.
-
Manuel Pégourié-Gonnard authored
The "inline" keyword is supported since Visual Studio 2005 according to MSDN, and we require Visual Studio 2010 or higher.
-
Manuel Pégourié-Gonnard authored
We now require support for stdint.h from the compiler.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
For some reason select() doesn't seem to work.
-
- 30 Jun, 2015 5 commits
-
-
Manuel Pégourié-Gonnard authored
This is made possible by the new API where net_accept() gets a pointer to bind_ctx, so it can update it.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
close() may be more meaningful, but free() is symmetric with _init(), and more consistent with all other modules
-
Manuel Pégourié-Gonnard authored
Provides more flexibility for future changes/extensions.
-
Manuel Pégourié-Gonnard authored
On Windows, recvfrom() returns an error code if the destination buffer is too small to hold the next datagram.
-
- 29 Jun, 2015 3 commits
-
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
But introduces dependency on variadic macros
-
- 27 Jun, 2015 1 commit
-
-
Manuel Pégourié-Gonnard authored
Assume we have two trusted CAs with the same name, the first uses ECDSA 256 bits, the second RSA 2048; cert is signed by the second. If we do the keysize check before we checked the key types match, we'll raise the badkey flags when checking the EC-256 CA and it will remain up even when we finally find the correct CA. So, move the check for the key size after signature verification, which implicitly checks the key type.
-
- 26 Jun, 2015 1 commit
-
-
Manuel Pégourié-Gonnard authored
When we build with Visual Studio in debug mode, the invalid parameter handler aborts the application (and offers to debug it) when n is 0. We want to just return -1 instead (as calls with n == 0 are expected and happen in our tests).
-
- 25 Jun, 2015 14 commits
-
-
Manuel Pégourié-Gonnard authored
Name chosen to match the existing make target.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
- all spaces no tabs - indent with 4 spaces everywhere
-
Manuel Pégourié-Gonnard authored
Timing belongs in libcrypto (due to havege depending on it) while net.c was put in libtls (only test ssl servers use it)
-
Manuel Pégourié-Gonnard authored
certs.c belongs to the X.509 library, while DHM belongs to the crypto lib.
-
Manuel Pégourié-Gonnard authored
We document that either of recv or recv_timeout may be NULL, but for TLS we always used recv... Thanks Coverity for catching that. (Not remotely trigerrable: local configuration.) Also made me notice net_recv_timeout didn't do its job properly.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
With the default config, it noticed the accept_comp was always 0, so the rest of the test was dead code.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
- 24 Jun, 2015 2 commits
-
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
Found using Codenomicon Defensics.
-
- 23 Jun, 2015 8 commits
-
-
Manuel Pégourié-Gonnard authored
Found by Coverity Scan.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
May happen with a faulty configuration (eg no allowed curve but trying to use ECDHE key exchange), but not trigger able remotely. (Found with Clang's scan-build.)
-
Manuel Pégourié-Gonnard authored
scan-build was reporting NULL dereferences
-
Manuel Pégourié-Gonnard authored
Probably a bad merge from the 1.3 branch
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
- avoids dependency on snprintf - allows using "smtps" instead of "456" if desired
-