pin to our cert (requires aliasing login.stella to it's real ip on the

gameserver)
This commit is contained in:
DarthArgus
2017-01-10 18:47:29 -06:00
parent e797a33576
commit e50801d266
4 changed files with 70 additions and 10 deletions
+4
View File
@@ -25,6 +25,7 @@
#else
#include <unordered_map>
#include <openssl/ssl.h>
#include <curl/curl.h>
#endif
@@ -47,6 +48,9 @@ namespace StellaBellum {
~webAPI();
// pin our key
CURLcode* sslctx_function(CURL *curl, void *sslctx, void *parm);
// submits the request
bool
submit(const int &reqType = DTYPE::JSON, const int &getPost = HTTP::POST, const int &respType = DTYPE::JSON);