summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-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/ssl/SslSocket.cpp5
-rw-r--r--qpid/cpp/src/qpid/sys/ssl/SslSocket.h1
-rw-r--r--qpid/cpp/src/qpid/sys/windows/WinSocket.cpp5
-rw-r--r--qpid/cpp/src/qpid/sys/windows/WinSocket.h1
7 files changed, 19 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/sys/Socket.h b/qpid/cpp/src/qpid/sys/Socket.h
index ed2c399c98..2cbf0e84c9 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 getPeerAuthId() const = 0;
virtual std::string getLocalAuthId() const = 0;
};
diff --git a/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp b/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp
index 39eebc438e..15c2b30242 100644
--- a/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp
+++ b/qpid/cpp/src/qpid/sys/posix/BSDSocket.cpp
@@ -276,6 +276,11 @@ std::string BSDSocket::getClientAuthId() const
return std::string();
}
+std::string BSDSocket::getPeerAuthId() const
+{
+ return std::string();
+}
+
std::string BSDSocket::getLocalAuthId() const
{
return "dummy";
diff --git a/qpid/cpp/src/qpid/sys/posix/BSDSocket.h b/qpid/cpp/src/qpid/sys/posix/BSDSocket.h
index 43aae98864..b0d1f1c9c8 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 virtual int getKeyLen() const;
QPID_COMMON_EXTERN virtual std::string getClientAuthId() const;
+ QPID_COMMON_EXTERN virtual std::string getPeerAuthId() const;
QPID_COMMON_EXTERN virtual std::string getLocalAuthId() const;
protected:
diff --git a/qpid/cpp/src/qpid/sys/ssl/SslSocket.cpp b/qpid/cpp/src/qpid/sys/ssl/SslSocket.cpp
index 16909f906c..815e2be8e4 100644
--- a/qpid/cpp/src/qpid/sys/ssl/SslSocket.cpp
+++ b/qpid/cpp/src/qpid/sys/ssl/SslSocket.cpp
@@ -401,6 +401,11 @@ std::string SslSocket::getClientAuthId() const
return getAuthId(PeerCertificateGetter(nssSocket));
}
+std::string SslSocket::getPeerAuthId() const
+{
+ return getAuthId(PeerCertificateGetter(nssSocket));
+}
+
std::string SslSocket::getLocalAuthId() const
{
return getAuthId(LocalCertificateGetter(nssSocket));
diff --git a/qpid/cpp/src/qpid/sys/ssl/SslSocket.h b/qpid/cpp/src/qpid/sys/ssl/SslSocket.h
index a18efdd15a..d8f9f43605 100644
--- a/qpid/cpp/src/qpid/sys/ssl/SslSocket.h
+++ b/qpid/cpp/src/qpid/sys/ssl/SslSocket.h
@@ -68,6 +68,7 @@ public:
int getKeyLen() const;
std::string getClientAuthId() const;
+ std::string getPeerAuthId() const;
std::string getLocalAuthId() const;
protected:
diff --git a/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp b/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp
index a68c8978b1..601accd938 100644
--- a/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp
+++ b/qpid/cpp/src/qpid/sys/windows/WinSocket.cpp
@@ -278,6 +278,11 @@ std::string WinSocket::getClientAuthId() const
return std::string();
}
+std::string WinSocket::getPeerAuthId() const
+{
+ return std::string();
+}
+
std::string WinSocket::getLocalAuthId() const
{
return "dummy";
diff --git a/qpid/cpp/src/qpid/sys/windows/WinSocket.h b/qpid/cpp/src/qpid/sys/windows/WinSocket.h
index 05cbd45911..c8c59d5160 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 getPeerAuthId() const;
QPID_COMMON_EXTERN std::string getLocalAuthId() const;
protected: