From ecab29954ae9b2e6ed42c9d2fb6631ad2bb77280 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 8 Mar 2016 21:28:03 +0000 Subject: QPID-7130: [PATCH 2/5] Added getLocalAuthId to all socket classes. Patch from Domen Vrankar git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1734160 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/sys/Socket.h | 1 + qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp | 5 +++++ qpid/cpp/src/qpid/sys/posix/BSDSocket.h | 1 + qpid/cpp/src/qpid/sys/windows/WinSocket.cpp | 5 +++++ qpid/cpp/src/qpid/sys/windows/WinSocket.h | 1 + 5 files changed, 13 insertions(+) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/sys/Socket.h b/qpid/cpp/src/qpid/sys/Socket.h index 7d84209390..ed2c399c98 100644 --- a/qpid/cpp/src/qpid/sys/Socket.h +++ b/qpid/cpp/src/qpid/sys/Socket.h @@ -110,6 +110,7 @@ public: /* Transport security related: */ virtual int getKeyLen() const = 0; virtual std::string getClientAuthId() const = 0; + virtual std::string getLocalAuthId() const = 0; }; /** Make the default socket for whatever platform we are executing on diff --git a/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp b/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp index 415c32bfa5..39eebc438e 100644 --- a/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp +++ b/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp @@ -276,4 +276,9 @@ std::string BSDSocket::getClientAuthId() const return std::string(); } +std::string BSDSocket::getLocalAuthId() const +{ + return "dummy"; +} + }} // namespace qpid::sys diff --git a/qpid/cpp/src/qpid/sys/posix/BSDSocket.h b/qpid/cpp/src/qpid/sys/posix/BSDSocket.h index 4fa2aef782..dcf99cbe4c 100644 --- a/qpid/cpp/src/qpid/sys/posix/BSDSocket.h +++ b/qpid/cpp/src/qpid/sys/posix/BSDSocket.h @@ -72,6 +72,7 @@ public: QPID_COMMON_EXTERN int getKeyLen() const; QPID_COMMON_EXTERN std::string getClientAuthId() const; + QPID_COMMON_EXTERN virtual std::string getLocalAuthId() const; protected: /** Create socket */ diff --git a/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp b/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp index 331bd8f48c..a68c8978b1 100644 --- a/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp +++ b/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp @@ -278,4 +278,9 @@ std::string WinSocket::getClientAuthId() const return std::string(); } +std::string WinSocket::getLocalAuthId() const +{ + return "dummy"; +} + }} // namespace qpid::sys diff --git a/qpid/cpp/src/qpid/sys/windows/WinSocket.h b/qpid/cpp/src/qpid/sys/windows/WinSocket.h index 435f8de4c6..05cbd45911 100644 --- a/qpid/cpp/src/qpid/sys/windows/WinSocket.h +++ b/qpid/cpp/src/qpid/sys/windows/WinSocket.h @@ -100,6 +100,7 @@ public: QPID_COMMON_EXTERN int getKeyLen() const; QPID_COMMON_EXTERN std::string getClientAuthId() const; + QPID_COMMON_EXTERN std::string getLocalAuthId() const; protected: /** Create socket */ -- cgit v1.2.1