Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated SSL structs and ConnectionObject
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 14 Aug 2016 22:30:26 +0000 (23:30 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 14 Aug 2016 22:30:26 +0000 (23:30 +0100)
source/common/sslcertstructs.h
source/connobject/ConnectionObject.h
source/tests/classes/FakeConnectionObject.cpp

index 1b5bb43..9f93509 100644 (file)
 // You should have received a copy of the GNU General Public License along
 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
 
-#include <map>
-
 #ifndef __COMMON_SSLCERTSTRUCTS_H__
 #define __COMMON_SSLCERTSTRUCTS_H__
 
+#include <map>
+#include <string>
+#include <wx/wx.h>
 
 struct SSLCertData{
 
@@ -32,9 +33,22 @@ struct SSLCertCollection{
 
        int SuccessCode = 0;
        
-       //std::map<int, int> SSLCollection;
        std::map<int, SSLCertData> SSLCollection;
 
 };
 
+struct SSLCertDataString{
+
+       std::multimap<std::string, std::string> CertData;
+
+};
+
+struct SSLCertCollectionString{
+
+       int SuccessCode = 0;
+       
+       std::map<int, SSLCertDataString> SSLCollection;
+
+};
+
 #endif
\ No newline at end of file
index 4ba84b8..d0bd1ce 100644 (file)
@@ -81,8 +81,9 @@ class ConnectionObject{
                virtual bool IsTaskCompleted() {};
                
                virtual COConnectResult Connect(bool DoAuthentication) {};
+               virtual void BypassSSLVerification(bool EnableBypass) {};
                
-               virtual std::string GetDefaultPrefix() {};
+               virtual COServerResponse GetDefaultPrefix(std::string *ServerPrefix) {};
                virtual COServerResponse AddContact(std::string Location, std::string Data) {};
                virtual COServerResponse EditContact(std::string Location, std::string Data) {};
                virtual COServerResponse DeleteContact(std::string Location, std::string EntityTag) {};
index 7eaffbb..9cb84ad 100644 (file)
@@ -175,4 +175,8 @@ bool FakeConnectionObject::AbleToLogin(){
 
 bool FakeConnectionObject::HasValidResponse(){
        return ValidResponse;
+}
+
+bool FakeConnectionObject::IsSelfSigned(){
+       return SSLSelfSigned;
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy