summaryrefslogtreecommitdiff
path: root/implementation/endpoints/include/credentials.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/endpoints/include/credentials.hpp')
-rw-r--r--implementation/endpoints/include/credentials.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/implementation/endpoints/include/credentials.hpp b/implementation/endpoints/include/credentials.hpp
index 2fe9060..bb4ee44 100644
--- a/implementation/endpoints/include/credentials.hpp
+++ b/implementation/endpoints/include/credentials.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2021 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,6 +6,10 @@
#ifndef VSOMEIP_V3_ENDPOINTS_INCLUDE_CREDENTIALS_HPP_
#define VSOMEIP_V3_ENDPOINTS_INCLUDE_CREDENTIALS_HPP_
+#include <tuple>
+
+#include <boost/optional.hpp>
+
#include <vsomeip/primitive_types.hpp>
namespace vsomeip_v3 {
@@ -16,9 +20,10 @@ public:
static void deactivate_credentials(const int _fd);
- static client_t receive_credentials(const int _fd, uid_t& _uid, gid_t& _gid);
+ using received_t = std::tuple<client_t, uid_t, gid_t, std::string>;
+ static boost::optional<received_t> receive_credentials(const int _fd);
- static void send_credentials(const int _fd, client_t _client);
+ static void send_credentials(const int _fd, client_t _client, std::string _client_host);
};
} // namespace vsomeip_v3