From: Scott Cantor Date: Fri, 12 Jan 2007 05:20:50 +0000 (+0000) Subject: Promoted isSecure. X-Git-Tag: 2.0-alpha1~113 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=9e8c8ba21f28fe4a5ed0fb8573588523ca3c0a0d Promoted isSecure. --- diff --git a/saml/binding/HTTPRequest.h b/saml/binding/HTTPRequest.h index 5f17c1d..177aa56 100644 --- a/saml/binding/HTTPRequest.h +++ b/saml/binding/HTTPRequest.h @@ -42,7 +42,11 @@ namespace opensaml { HTTPRequest() {} public: virtual ~HTTPRequest() {} - + + bool isSecure() const { + return strcmp(getScheme(),"https")==0; + } + /** * Returns the HTTP method of the request (GET, POST, etc.) * diff --git a/samltest/binding.h b/samltest/binding.h index fdbe990..a1c6d19 100644 --- a/samltest/binding.h +++ b/samltest/binding.h @@ -126,10 +126,6 @@ public: return "https"; } - bool isSecure() const { - return true; - } - const char* getHostname() const { return "localhost"; }