summaryrefslogtreecommitdiffstats
path: root/net/base/client_socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/client_socket.cc')
-rw-r--r--net/base/client_socket.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/base/client_socket.cc b/net/base/client_socket.cc
new file mode 100644
index 0000000..4c607fa
--- /dev/null
+++ b/net/base/client_socket.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/base/client_socket.h"
+
+#include "base/logging.h"
+#include "net/base/net_errors.h"
+
+namespace net {
+
+#if defined(OS_LINUX)
+// Identical to posix system call getpeername().
+// Needed by ssl_client_socket_nss.
+int ClientSocket::GetPeerName(struct sockaddr *name, socklen_t *namelen) {
+ // Default implementation just permits some unit tests to link.
+ NOTREACHED();
+ return ERR_UNEXPECTED;
+}
+#endif
+
+} // namespace net