summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2002-05-18 16:33:38 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2002-05-18 16:33:38 +0000
commit5ef52dd0d8a848df783ca3d6e1cf7ce368b95f92 (patch)
tree294a2897199ef21d6bc434f7aede536052d2b3fb
parent1bed4ec2dbe4fc1a62016c7c4e94419362b6f56c (diff)
downloadATCD-5ef52dd0d8a848df783ca3d6e1cf7ce368b95f92.tar.gz
ChangeLogTag:Sat May 18 09:32:58 2002 Ossama Othman <ossama@uci.edu>
-rw-r--r--ChangeLog8
-rw-r--r--ChangeLogs/ChangeLog-02a8
-rw-r--r--ChangeLogs/ChangeLog-03a8
-rw-r--r--ace/SSL/SSL_SOCK_Stream.cpp5
4 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8598b2d172b..16511938f2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sat May 18 09:32:58 2002 Ossama Othman <ossama@uci.edu>
+
+ * ace/SSL/SSL_SOCK_Stream.cpp (get_remote_addr):
+
+ Set errno to ENOTCONN if the SSL connection hasn't been
+ completed yet, and errno to EBADF if the file descriptor hasn't
+ been set yet. This emulates the getpeername() errno semantics.
+
Sat May 18 08:19:48 2002 Ossama Othman <ossama@uci.edu>
* ace/SSL/SSL_Connector.h:
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 8598b2d172b..16511938f2c 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,11 @@
+Sat May 18 09:32:58 2002 Ossama Othman <ossama@uci.edu>
+
+ * ace/SSL/SSL_SOCK_Stream.cpp (get_remote_addr):
+
+ Set errno to ENOTCONN if the SSL connection hasn't been
+ completed yet, and errno to EBADF if the file descriptor hasn't
+ been set yet. This emulates the getpeername() errno semantics.
+
Sat May 18 08:19:48 2002 Ossama Othman <ossama@uci.edu>
* ace/SSL/SSL_Connector.h:
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 8598b2d172b..16511938f2c 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,11 @@
+Sat May 18 09:32:58 2002 Ossama Othman <ossama@uci.edu>
+
+ * ace/SSL/SSL_SOCK_Stream.cpp (get_remote_addr):
+
+ Set errno to ENOTCONN if the SSL connection hasn't been
+ completed yet, and errno to EBADF if the file descriptor hasn't
+ been set yet. This emulates the getpeername() errno semantics.
+
Sat May 18 08:19:48 2002 Ossama Othman <ossama@uci.edu>
* ace/SSL/SSL_Connector.h:
diff --git a/ace/SSL/SSL_SOCK_Stream.cpp b/ace/SSL/SSL_SOCK_Stream.cpp
index b2904d04bd1..a8ef10df179 100644
--- a/ace/SSL/SSL_SOCK_Stream.cpp
+++ b/ace/SSL/SSL_SOCK_Stream.cpp
@@ -556,5 +556,10 @@ ACE_SSL_SOCK_Stream::get_remote_addr (ACE_Addr &addr) const
if (SSL_is_init_finished (this->ssl_))
return this->ACE_SOCK::get_remote_addr (addr);
+ if (this->get_handle () == ACE_INVALID_HANDLE)
+ errno = EBADF;
+ else
+ errno = ENOTCONN;
+
return -1;
}