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
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 @@
{
return true;
}
- sslUser.resize(lastChar - 1);
+ sslUser.resize(lastChar);
session =
persistent_data::SessionStore::getInstance()