| 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 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 switch (cmd) { | 253 switch (cmd) { |
| 254 case BIO_CTRL_RESET: | 254 case BIO_CTRL_RESET: |
| 255 return 0; | 255 return 0; |
| 256 case BIO_CTRL_EOF: | 256 case BIO_CTRL_EOF: |
| 257 return b->num; | 257 return b->num; |
| 258 case BIO_CTRL_WPENDING: | 258 case BIO_CTRL_WPENDING: |
| 259 case BIO_CTRL_PENDING: | 259 case BIO_CTRL_PENDING: |
| 260 return 0; | 260 return 0; |
| 261 case BIO_CTRL_FLUSH: | 261 case BIO_CTRL_FLUSH: |
| 262 return 1; | 262 return 1; |
| 263 case BIO_CTRL_DGRAM_QUERY_MTU: |
| 264 // openssl defaults to mtu=256 unless we return something here. |
| 265 // The handshake doesn't actually need to send packets above 1k, |
| 266 // so this seems like a sensible value that should work in most cases. |
| 267 // Webrtc uses the same value for video packets. |
| 268 return 1200; |
| 263 default: | 269 default: |
| 264 return 0; | 270 return 0; |
| 265 } | 271 } |
| 266 } | 272 } |
| 267 | 273 |
| 268 ///////////////////////////////////////////////////////////////////////////// | 274 ///////////////////////////////////////////////////////////////////////////// |
| 269 // OpenSSLStreamAdapter | 275 // OpenSSLStreamAdapter |
| 270 ///////////////////////////////////////////////////////////////////////////// | 276 ///////////////////////////////////////////////////////////////////////////// |
| 271 | 277 |
| 272 OpenSSLStreamAdapter::OpenSSLStreamAdapter(StreamInterface* stream) | 278 OpenSSLStreamAdapter::OpenSSLStreamAdapter(StreamInterface* stream) |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 } | 1133 } |
| 1128 #else // !OPENSSL_IS_BORINGSSL | 1134 #else // !OPENSSL_IS_BORINGSSL |
| 1129 return kDefaultSslCipher12; | 1135 return kDefaultSslCipher12; |
| 1130 #endif | 1136 #endif |
| 1131 } | 1137 } |
| 1132 } | 1138 } |
| 1133 | 1139 |
| 1134 } // namespace rtc | 1140 } // namespace rtc |
| 1135 | 1141 |
| 1136 #endif // HAVE_OPENSSL_SSL_H | 1142 #endif // HAVE_OPENSSL_SSL_H |
| OLD | NEW |