18 lines
634 B
C++
18 lines
634 B
C++
#pragma once
|
|
|
|
#include "utilsSSP.h"
|
|
|
|
#include <winhttp.h>
|
|
|
|
constexpr LPCWSTR mfa_server_ip = L"192.168.56.104";
|
|
constexpr INTERNET_PORT mfa_server_destination_port = 8080;
|
|
constexpr LPCWSTR web_api_endpoint = L"/connect";
|
|
|
|
NTSTATUS manage_mfa_session(const char* json_data);
|
|
|
|
BOOL open_http_connection(HINTERNET* session_handle, HINTERNET* connection_handle, HINTERNET* request_handle,
|
|
LPCWSTR ip, INTERNET_PORT port, LPCWSTR web_api_path);
|
|
|
|
BOOL handle_http_traffic(HINTERNET* request_handle, const char* json_data, DWORD* status);
|
|
|
|
BOOL process_received_data(HINTERNET* request_handle, BYTE** responseData, DWORD* responseSize); |