From 9e8c8ba21f28fe4a5ed0fb8573588523ca3c0a0d Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 12 Jan 2007 05:20:50 +0000 Subject: [PATCH] Promoted isSecure. --- saml/binding/HTTPRequest.h | 6 +++++- samltest/binding.h | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) 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"; } -- 2.1.4