Why SSL_get_error returns SSL_ERROR_SYSCALL?

Dimitrios Desyllas - Jul 15 '22 - - Dev Community

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

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

#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#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")
//#pragma
โ€ฆ

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?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player