- 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 18 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
-
Manuel Pégourié-Gonnard authored
Caused issues in threading situations
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
When someone defines MBEDTLS_MD5_ALT for example, the init function may need to do more that just zeroizing the context
-
Manuel Pégourié-Gonnard authored
Allow for future support of decipherOnly and encipherOnly. Some work will be required to ensure we still write only one byte when only one is needed.
-
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
After all it looks like those won't become standard.
-
- 22 Jun, 2015 4 commits
-
-
Manuel Pégourié-Gonnard authored
Some toolchains do not have inttypes.h, and we only need stdint.h which is a subset of it.
-
Manuel Pégourié-Gonnard authored
-
Manuel Pégourié-Gonnard authored
Introduced when moving from gmtime_r() to gmtime(). Found with fbinfer.
-
Manuel Pégourié-Gonnard authored
Found with fbinfer.
-