-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added client-tls-smtp-overssl.c and client-tls-smtp-starttls.c #362
base: master
Are you sure you want to change the base?
Conversation
Add client-tls-smtp-overssl.c Add client-tls-smtp-overssl.c
Add client-tls-smtp-starttls.c Added client-tls-smtp
Add client-tls-smtp-overssl.c Add client-tls-smtp-overssl.c
Add client-tls-smtp-starttls.c Added client-tls-smtp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the tls/README.md with a description and sample usage:
% ./client-tls-smtp-overssl
usage: ./client-tls-smtp-overssl <SERVER_NAME> <CERT_FILE>
% ./client-tls-smtp-starttls
usage: ./client-tls-smtp-starttls <SERVER_NAME> <CERT_FILE>
tls/client-tls.c
Outdated
@@ -82,7 +82,7 @@ int main(int argc, char** argv) | |||
ret = -1; | |||
goto end; | |||
} | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this whitespace addition.
tls/client-tls-smtp-starttls.c
Outdated
close(sockfd); /* Close the connection to the server */ | ||
end: | ||
return ret; /* Return reporting a success */ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add extra newline to end of file. Should be one at end. Thanks
tls/client-tls-smtp-starttls.c
Outdated
#include <wolfssl/ssl.h> | ||
#include <wolfssl/wolfcrypt/coding.h> | ||
|
||
/*smtp starttls commands */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* smtp
tls/client-tls-smtp-overssl.c
Outdated
} | ||
|
||
/* Encode the mail to Base64 */ | ||
word32 outLen = sizeof(buff); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't mix variable declarations in code. Must be top of function or in a brace section.
tls/client-tls-smtp-overssl.c
Outdated
goto cleanup; | ||
} | ||
/* Get the right mail address length */ | ||
for(len=0;len<sizeof(plain);len++){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add spaces for (len=0; len<sizeof(plain); len++) {
No description provided.