On Thu, Apr 20, 2023 at 12:20:16AM +0530, Samiya Khanum via openssl-users wrote: > * if(tls1_new(con) != 1)* > * {* > * SSL_shutdown(con);* > * SSL_free(con);* > * SocketClose(sd);* > * return FAILURE;* > * }* What is "tls1_new"? This does not look like a public OpenSSL API call. > * err = SSL_connect(con);* > * if(err == -1)* > * {* > * tls1_clear(con);* And what is tls1_clear()? Perhaps if you simply delete both calls, things will start to work. -- Viktor.