mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib.http: fix http schannel & follow redirects & cleanup
This commit is contained in:

committed by
Alexander Medvednikov

parent
2ebfc8ab73
commit
a0b59783a2
9
thirdparty/vschannel/vschannel.h
vendored
9
thirdparty/vschannel/vschannel.h
vendored
@ -19,7 +19,13 @@
|
||||
#define SP_PROT_TLS1_2_CLIENT 0x00000800
|
||||
|
||||
|
||||
INT request(CHAR *host, CHAR *req, CHAR *out);
|
||||
static struct TlsContext new_tls_context();
|
||||
|
||||
static void vschannel_init();
|
||||
|
||||
static void vschannel_cleanup();
|
||||
|
||||
static INT request(CHAR *host, CHAR *req, CHAR *out);
|
||||
|
||||
static SECURITY_STATUS create_credentials(PCredHandle phCreds);
|
||||
|
||||
@ -36,7 +42,6 @@ static SECURITY_STATUS client_handshake_loop(
|
||||
static SECURITY_STATUS https_make_request(
|
||||
SOCKET Socket, PCredHandle phCreds,
|
||||
CtxtHandle *phContext, CHAR *req, CHAR *out, int *length);
|
||||
// CtxtHandle *phContext, CHAR *path);
|
||||
|
||||
static DWORD verify_server_certificate(
|
||||
PCCERT_CONTEXT pServerCert, PSTR host, DWORD dwCertFlags);
|
||||
|
Reference in New Issue
Block a user