Final read through and adjustments to README

pull/50/head
Conner 2017-05-26 15:19:27 -06:00
parent cc5286594d
commit cc31940bff
1 changed files with 2 additions and 3 deletions

View File

@ -200,10 +200,9 @@ Session resumption allows a client/server pair to re-use previously generated cr
/* close connection */ /* close connection */
close(sockfd); close(sockfd);
/* cleanup */ /* cleanup without wolfSSL_Cleanup() for now */
wolfSSL_free(ssl); wolfSSL_free(ssl);
wolfSSL_CTX_free(ctx); wolfSSL_CTX_free(ctx);
wolfSSL_Cleanup();
3. Now we are ready to reconnect and start a new socket but we are going to reuse the session id to make things go a little faster. 3. Now we are ready to reconnect and start a new socket but we are going to reuse the session id to make things go a little faster.
@ -247,7 +246,7 @@ Session resumption allows a client/server pair to re-use previously generated cr
/* shut down socket */ /* shut down socket */
close(sock); close(sock);
/* clean up */ /* clean up now with wolfSSL_Cleanup() */
wolfSSL_free(sslResume); wolfSSL_free(sslResume);
wolfSSL_CTX_free(ctx); wolfSSL_CTX_free(ctx);
wolfSSL_Cleanup(); wolfSSL_Cleanup();