-
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-http.c example #353
base: master
Are you sure you want to change the base?
Conversation
tls/client-tls-http.c
Outdated
/* Connect to wolfSSL on the server side */ | ||
if ((ret = wolfSSL_connect(ssl)) != SSL_SUCCESS) { | ||
fprintf(stderr, "ERROR: failed to connect to wolfSSL\n"); | ||
printf("%d\n",ret); |
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.
Not sure we need this printf for ret
. On failure, wolfSSL_connect
will just return SSL_FAILURE
. If you want to print the specific error, please call wolfSSL_get_error(ssl, ret)
, then print out the return of that function.
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.
Deleted unnecessary debug printf at 446f0a7.
|
No description provided.