OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "xmppsocket.h" | 11 #include "xmppsocket.h" |
12 | 12 |
13 #ifdef HAVE_CONFIG_H | |
14 #include <config.h> | |
15 #endif | |
16 | |
17 #include <errno.h> | 13 #include <errno.h> |
18 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
19 #include "webrtc/base/thread.h" | 15 #include "webrtc/base/thread.h" |
20 #ifdef FEATURE_ENABLE_SSL | 16 #ifdef FEATURE_ENABLE_SSL |
21 #include "webrtc/base/ssladapter.h" | 17 #include "webrtc/base/ssladapter.h" |
22 #endif | 18 #endif |
23 | 19 |
24 #ifdef USE_SSLSTREAM | 20 #ifdef USE_SSLSTREAM |
25 #include "webrtc/base/socketstream.h" | 21 #include "webrtc/base/socketstream.h" |
26 #ifdef FEATURE_ENABLE_SSL | 22 #ifdef FEATURE_ENABLE_SSL |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 #endif // USE_SSLSTREAM | 231 #endif // USE_SSLSTREAM |
236 state_ = buzz::AsyncSocket::STATE_TLS_CONNECTING; | 232 state_ = buzz::AsyncSocket::STATE_TLS_CONNECTING; |
237 return true; | 233 return true; |
238 #else // !defined(FEATURE_ENABLE_SSL) | 234 #else // !defined(FEATURE_ENABLE_SSL) |
239 return false; | 235 return false; |
240 #endif // !defined(FEATURE_ENABLE_SSL) | 236 #endif // !defined(FEATURE_ENABLE_SSL) |
241 } | 237 } |
242 | 238 |
243 } // namespace buzz | 239 } // namespace buzz |
244 | 240 |
OLD | NEW |