smtp-client
SMTP Client C Library
|
Test the smtp-client library without OpenSSL. More...
Go to the source code of this file.
Functions | |
static void | load_test_email (char *const email, size_t emailsz) |
static void | test_nossl_smtp (void) |
int | main (void) |
Test the smtp-client library without OpenSSL.
These functional tests ensure that the smtp-client library works when configured without OpenSSL.
This software has been placed into the public domain using CC0.
Definition in file test_nossl.c.
|
static |
Load the test email to send from a configuration file.
[out] | String buffer to store the email in. | |
[in] | emailsz | Number of bytes in email. |
Definition at line 25 of file test_nossl.c.
References fclose, and ferror.
Referenced by test_nossl_smtp().
int main | ( | void | ) |
Main program entry point for testing the smtp-client library build without OpenSSL.
0 | All tests passed. |
1 | Error. |
Definition at line 98 of file test_nossl.c.
References test_nossl_smtp().
|
static |
Load the configuration file and send a single test email.
Definition at line 50 of file test_nossl.c.
References load_test_email(), smtp_address_add(), SMTP_ADDRESS_FROM, SMTP_ADDRESS_TO, smtp_close(), SMTP_DEBUG, smtp_header_add(), smtp_mail(), smtp_open(), SMTP_SECURITY_NONE, and SMTP_STATUS_OK.
Referenced by main().