summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorZbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com>2019-11-14 15:49:29 +0100
committerZbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com>2019-11-18 09:20:42 +0000
commit7d7034a65cf91e481e74494eec36957ceff573e9 (patch)
treef4e780efda4e1da7c49f8ff2986f3c0b08979f28 /http
parenta3002228555bbabb42387a27e8b4ec55240ce7eb (diff)
downloadbmcweb-7d7034a65cf91e481e74494eec36957ceff573e9.tar.gz
bmcweb-7d7034a65cf91e481e74494eec36957ceff573e9.zip
mTLS access fix to some URLs.
This patch is about fixing mTLS access to URL requiring Administrator or Opeartor privileges (e.g. /redfish/v1/AccountService). Tested manually with cURL: - prepare and install CA certificate, - call GET to the url=/redfish/v1/AccountService, - verify whether got status=200 and proper body in the response. Signed-off-by: Zbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com> Change-Id: I65109bffadf4f1d6d410cd303687b6da55fd1be0
Diffstat (limited to 'http')
-rw-r--r--http/http_connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_connection.h b/http/http_connection.h
index 70def8a..bb3c9dd 100644
--- a/http/http_connection.h
+++ b/http/http_connection.h
@@ -395,7 +395,7 @@ class Connection
{
return true;
}
- sslUser.resize(lastChar - 1);
+ sslUser.resize(lastChar);
session =
persistent_data::SessionStore::getInstance()
OpenPOWER on IntegriCloud