Log Redfish event for invalid login via RMCPP interface

This commit adds support for logging RedFish event log while user tries
to attempt login with invalid credentials.
When user trying to login with invalid credentials on RMCP+ session
interface event should be logged in RedFish event log.
This is a requirement for system events auditing purpose.

Tested:
1. Login with wrong credentials on RMCP+ interface.
2. Verified RedFish event logged successfully.

"Members": [
        {
            "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1622785246",
            "@odata.type": "#LogEntry.v1_4_0.LogEntry",
            "Created": "2021-06-04T05:40:46+00:00",
            "EntryType": "Event",
            "Id": "1622785246",
            "Message": "Invalid username or password attempted on RMCPP.",
            "MessageArgs": [
                "RMCP+"
            ],
            "MessageId": "OpenBMC.0.1.InvalidLoginAttempted",
            "Name": "System Event Log Entry",
            "Severity": "Warning"
        }
    ],
    "Members@odata.count": 1,
    "Name": "System Event Log Entries"
}

3. Verified RedFish validator passed

Signed-off-by: sunitakx <sunitax.kumari@linux.intel.com>
Change-Id: I40b37ff5dd518c52d01b00196e8607c9762a17bf
diff --git a/command/rakp12.hpp b/command/rakp12.hpp
index bf6d4c5..e2eebc2 100644
--- a/command/rakp12.hpp
+++ b/command/rakp12.hpp
@@ -74,5 +74,14 @@
  */
 std::vector<uint8_t> RAKP12(const std::vector<uint8_t>& inPayload,
                             std::shared_ptr<message::Handler>& handler);
-
+/**
+ *@brief Log Redfish event for invalid login attempted on RMCPP interface
+ *
+ * @param[in] journalMsg - Show journal Debug Message in journal logs
+ * @param[in] redfishMsg - Log Redfish Event Message
+ *
+ */
+void logInvalidLoginRedfishEvent(
+    const std::string& journalMsg,
+    const std::optional<std::string>& messageArgs = "RMCPP");
 } // namespace command