// Build and return the SSL collection.
+ cout << "Build SSL Collection!" << endl;
+
SSLCertCollectionString SSLCertInfo;
// Grab the certificate data.
certptr.certdata = NULL;
- curl_easy_getinfo(ConnectionSession, CURLINFO_CERTINFO, &certptr.certinfo);
+ CURLcode result = curl_easy_getinfo(ConnectionSession, CURLINFO_CERTINFO, &certptr.certinfo);
+ cout << certptr.certinfo->num_of_certs << endl;
+
std::string CertPropName;
std::string CertPropValue;
-
+
for (int i = 0; i < certptr.certinfo->num_of_certs; i++){
-
+
struct curl_slist *slist;
SSLCertDataString SSLCertDataInc;
COConnectResult ConnectResult = COCONNECT_UNITTESTFAIL;
string ServerAddressURL = BuildURL("/principals/");
-
+
curl_easy_setopt(ConnectionSession, CURLOPT_URL, ServerAddressURL.c_str());
if (TestMode == true){
curl_easy_setopt(ConnectionSession, CURLOPT_URL, ServerAddressURL.c_str());
curl_easy_setopt(ConnectionSession, CURLOPT_NOPROGRESS, 1L);
+ curl_easy_setopt(ConnectionSession, CURLOPT_CERTINFO, 1L);
curl_easy_setopt(ConnectionSession, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST|CURLAUTH_BASIC);
curl_easy_setopt(ConnectionSession, CURLOPT_TIMEOUT, 60);
curl_easy_setopt(ConnectionSession, CURLOPT_FAILONERROR, 0L);
curl_easy_setopt(ConnectionSession, CURLOPT_WRITEDATA, &PageDataObject);
curl_easy_setopt(ConnectionSession, CURLOPT_WRITEHEADER, &PageHeaderObject);
curl_easy_setopt(ConnectionSession, CURLOPT_ERRORBUFFER, SessionErrorBuffer);
- //curl_easy_setopt(ConnectionSession, CURLOPT_NOSIGNAL, 1L);
- curl_easy_setopt(ConnectionSession, CURLOPT_CERTINFO, 1L);
- //curl_easy_setopt(ConnectionSession, CURLOPT_VERBOSE, 2L);
curl_easy_setopt(ConnectionSession, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(ConnectionSession, CURLOPT_HTTPHEADER, nullptr);
curl_easy_setopt(ConnectionSession, CURLOPT_POSTFIELDS, nullptr);
string ServerAddressURL;
- if (SSLStatus == true){
+ if (ServerSSL == true){
ServerAddressURL = "https://" + ServerAddress + ":" + to_string(ServerPort) + URI;
} else {
ServerAddressURL = "http://" + ServerAddress + ":" + to_string(ServerPort) + URI;
// Get the subject data and put into a map<wxString,wxString>
std::map<wxString,wxString> SubjectDataFinal;
- wxStringTokenizer SubjectDataToken(SubjectData, wxT(";"));
+ wxStringTokenizer SubjectDataToken(SubjectData, wxT(","));
wxString StringData;
wxString SettingName;
wxString SettingValue;
// Get the subject data and put into a map<wxString,wxString>
std::map<string,string> SubjectDataFinal;
- wxStringTokenizer SubjectDataToken(wxString(SubjectData.c_str(), wxConvUTF8), wxT(";"));
+ wxStringTokenizer SubjectDataToken(wxString(SubjectData.c_str(), wxConvUTF8), wxT(","));
wxString StringData;
wxString SettingName;
wxString SettingValue;