DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Why SSL_get_error returns SSL_ERROR_SYSCALL?

I attempt to perform an GET HTTPS using HTTP1.1 to call using winsock2 and openssl.

I attempt to perform an HTTP GET request via winsock2 usin openssl 1.1.1 as SSL Layer:

#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>

#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/applink.c>

// Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib
#pragma comment (lib, "Ws2_32.lib")
//#pragma comment (lib, "Mswsock.lib")

But despite having proper network connectivity and SSL method being supported from google's part, still I am unable to figure out the reason why I get this error.

can you help me with that?

Oldest comments (0)