check return value of wolfSSL_set_fd

This commit is contained in:
Jacob Barthelmeh
2016-03-25 13:59:04 -06:00
parent 57ea1cdcd7
commit 696169634e
6 changed files with 34 additions and 12 deletions

4
input
View File

@@ -48,7 +48,9 @@ int main(int argc, char** argv)
ssl = SSL_new(ctx);
SSL_set_fd(ssl, sockfd);
if (SSL_set_fd(ssl, sockfd) != SSL_SUCCESS)
err_sys("can't set ssl fd");
if (SSL_connect(ssl) != SSL_SUCCESS) err_sys("SSL_connect failed");
while (fgets(send, sizeof(send), fin)) {