On 18/10/2017 11:14, Matt Caswell wrote:
On 17/10/17 21:27, Chris Bare wrote:
I have the following code:
setup_ssl (char *server_name, char *port, SSL_CTX *ctx)
{
BIO *output = BIO_new_ssl_connect (ctx);
if (!output)
{
return (NULL);
}
BIO_get_ssl (output, &ss
On 17/10/17 21:27, Chris Bare wrote:
> I have the following code:
>
> setup_ssl (char *server_name, char *port, SSL_CTX *ctx)
> {
> BIO *output = BIO_new_ssl_connect (ctx);
> if (!output)
> {
> return (NULL);
> }
> BIO_get_ssl (output, &ssl);
> SSL_set_mode (ssl,
I have the following code:
setup_ssl (char *server_name, char *port, SSL_CTX *ctx)
{
BIO *output = BIO_new_ssl_connect (ctx);
if (!output)
{
return (NULL);
}
BIO_get_ssl (output, &ssl);
SSL_set_mode (ssl, SSL_MODE_AUTO_RETRY);
SSL_set_verify (ssl, true, NULL);