mbedtls/programs/ssl
Alfred Klomp 9afec5f8ec ssl_mail_client.c: silence warning, check base64_encode() status
Found with Clang's `scan-build` tool.

ssl_mail_client.c does a dead store by assigning the return value of
base64_encode() to `len` and not using the value.  This causes
scan-build to issue a warning.

Instead of storing the return value into `len`, store it to `ret`, since
base64_encode() returns a status code, not a length. Also check if the
return value is nonzero and print an error; this silences scan-build.
2014-10-23 15:36:17 +02:00
..
test-ca - Changed certificate verify behaviour to comply with RFC 6125 section 6.3 to not match CN if subjectAltName extension is present. 2012-05-10 14:12:46 +00:00
CA-HOWTO.txt - Renamed include directory to polarssl 2009-01-03 21:22:43 +00:00
CMakeLists.txt - Added first version of ssl_server2 example application 2012-09-25 09:05:17 +00:00
ssl_client1.c Proper initialization and checks for rare cases 2014-07-09 14:58:11 +02:00
ssl_client2.c Add ssl_close_notify() to servers that missed it 2014-07-08 14:30:35 +02:00
ssl_fork_server.c Proper initialization and checks for rare cases 2014-07-09 14:58:11 +02:00
ssl_mail_client.c ssl_mail_client.c: silence warning, check base64_encode() status 2014-10-23 15:36:17 +02:00
ssl_server2.c Proper initialization and checks for rare cases 2014-07-09 14:58:11 +02:00
ssl_server.c Cleaned up location of init and free for some programs to prevent memory 2014-07-08 18:28:30 +02:00