Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: runtime/bin/secure_socket.cc

Issue 1680733002: Fix build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/secure_socket.h" 5 #include "bin/secure_socket.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } else { 405 } else {
406 ASSERT(Dart_IsList(object)); 406 ASSERT(Dart_IsList(object));
407 ThrowIfError(Dart_ListLength(object, &bytes_len)); 407 ThrowIfError(Dart_ListLength(object, &bytes_len));
408 bytes = Dart_ScopeAllocate(bytes_len); 408 bytes = Dart_ScopeAllocate(bytes_len);
409 ASSERT(bytes != NULL); 409 ASSERT(bytes != NULL);
410 ThrowIfError(Dart_ListGetAsBytes(object, 0, bytes, bytes_len)); 410 ThrowIfError(Dart_ListGetAsBytes(object, 0, bytes, bytes_len));
411 } 411 }
412 412
413 object_ = object; 413 object_ = object;
414 bytes_ = bytes; 414 bytes_ = bytes;
415 bytes_len_ = bytes_len_; 415 bytes_len_ = bytes_len;
416 bio_ = BIO_new_mem_buf(bytes, bytes_len); 416 bio_ = BIO_new_mem_buf(bytes, bytes_len);
417 ASSERT(bio_ != NULL); 417 ASSERT(bio_ != NULL);
418 is_typed_data_ = is_typed_data; 418 is_typed_data_ = is_typed_data;
419 } 419 }
420 420
421 ~MemBIOScope() { 421 ~MemBIOScope() {
422 ASSERT(bio_ != NULL); 422 ASSERT(bio_ != NULL);
423 if (is_typed_data_) { 423 if (is_typed_data_) {
424 BIO_free(bio_); 424 BIO_free(bio_);
425 ThrowIfError(Dart_TypedDataReleaseData(object_)); 425 ThrowIfError(Dart_TypedDataReleaseData(object_));
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 } else { 1272 } else {
1273 if (SSL_LOG_DATA) Log::Print( 1273 if (SSL_LOG_DATA) Log::Print(
1274 "WriteEncrypted BIO_read wrote %d bytes\n", bytes_processed); 1274 "WriteEncrypted BIO_read wrote %d bytes\n", bytes_processed);
1275 } 1275 }
1276 } 1276 }
1277 return bytes_processed; 1277 return bytes_processed;
1278 } 1278 }
1279 1279
1280 } // namespace bin 1280 } // namespace bin
1281 } // namespace dart 1281 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698