kc3-lang/smtp/test/test.h

Branch :


Log

Author Commit Date CI Message
b6744cd1 2018-11-13 07:43:50 Add test seam for strlen() function. Add separate functions that add additional checks for unsigned wrapping. Initialize socket value to -1.
cb346c71 2018-11-03 06:29:54 Update example to include separate email parameters. Split header folding out into separate function, and added corresponding test cases. Applied the chunk function to base64 attachments. Remove undefined behavior resulting from negative shift.
4f83bb8a 2018-10-27 04:14:29 Increase maximum date buffer size to silence GCC format overflow warning. GCC generates a false-positive in this instance, referencing the UTC offset as the possible culprit. The UTC offset is restricted to a maximum of 4 digits from the conversion after calling difftime() on local and UTC time.
5c44cf4b 2018-10-07 11:47:29 Replace all instances of ssize_t with long and rearranged unistd include, fixing compile errors on Windows VS.
9dbdc919 2018-10-07 09:19:48 Replace a few sprintf calls with smtp_stpcpy, a portable version of stpcpy. Some sprintf implementations might fail from OOM condition.
ee6d4b2c 2018-08-21 04:29:41 Set all source files to version 1.00.
74e0ffef 2018-08-12 00:17:48 Finish adding test cases for x509 which brings us to 100% branch/code coverage.
f6d4b5e0 2018-08-11 07:06:01 Fix buffer length issue when copying line buffer. Remove carriage-return character when printing debug text. Do not print headers with NULL values. Fix unsigned character comparison when validating header keys. Ensure caller provides a required FROM address. Fix other miscellaneous issues while updating test cases. Fixed a number of problems where test cases did not work as described.
f0a769ef 2018-06-23 21:02:33 Allow sending UTF-8 email headers. Also add support for UTF-8 email addresses in the MAIL and RCPT commands which requires that the email server supports the SMTPUTF8 extension.
3de6b0bc 2018-06-17 03:39:30 Add missing includes that generated warnings on some systems.
7477483c 2018-06-13 16:01:52 Add main testing framework for the SMTP library. This is not quite 100% branch coverage yet.