summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2016-03-08 21:28:03 +0000
committerGordon Sim <gsim@apache.org>2016-03-08 21:28:03 +0000
commitecab29954ae9b2e6ed42c9d2fb6631ad2bb77280 (patch)
treedb9e1f907fbb0d3c134795f42d4bebf8cdfde05e
parent3e8743ce7832cd70c330b4def6434a5c91e76e03 (diff)
downloadqpid-python-ecab29954ae9b2e6ed42c9d2fb6631ad2bb77280.tar.gz
QPID-7130: [PATCH 2/5] Added getLocalAuthId to all socket classes.
Patch from Domen Vrankar <domen.vrankar@halcom.si> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1734160 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/sys/Socket.h1
-rw-r--r--qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp5
-rw-r--r--qpid/cpp/src/qpid/sys/posix/BSDSocket.h1
-rw-r--r--qpid/cpp/src/qpid/sys/windows/WinSocket.cpp5
-rw-r--r--qpid/cpp/src/qpid/sys/windows/WinSocket.h1
5 files changed, 13 insertions, 0 deletions
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 */