| Index: runtime/bin/secure_socket.h
|
| diff --git a/runtime/bin/secure_socket.h b/runtime/bin/secure_socket.h
|
| index 304ccd52dad4bfbf8abcf21023fce6612bf6041a..cdb4f65be98080b3c4839272bc92862c822b22ec 100644
|
| --- a/runtime/bin/secure_socket.h
|
| +++ b/runtime/bin/secure_socket.h
|
| @@ -46,6 +46,8 @@ class SSLFilter {
|
| kFirstEncrypted = kReadEncrypted
|
| };
|
|
|
| + static dart::Mutex* mutex; // To protect library initialization.
|
| +
|
| SSLFilter()
|
| : callback_error(NULL),
|
| string_start_(NULL),
|
| @@ -87,15 +89,17 @@ class SSLFilter {
|
| static void InitializeLibrary(const char* certificate_database,
|
| const char* password,
|
| bool use_builtin_root_certificates,
|
| + bool read_only,
|
| bool report_duplicate_initialization = true);
|
| static Dart_Port GetServicePort();
|
| Dart_Handle callback_error;
|
|
|
| + static char* GetPassword() { return password_; }
|
| +
|
| private:
|
| static const int kMemioBufferSize = 20 * KB;
|
| static bool library_initialized_;
|
| - static const char* password_;
|
| - static dart::Mutex* mutex_; // To protect library initialization.
|
| + static char* password_;
|
| static NativeService filter_service_;
|
|
|
| uint8_t* buffers_[kNumBuffers];
|
| @@ -115,7 +119,6 @@ class SSLFilter {
|
| return static_cast<BufferIndex>(i) >= kFirstEncrypted;
|
| }
|
| void InitializeBuffers(Dart_Handle dart_this);
|
| - void InitializePlatformData();
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SSLFilter);
|
| };
|
|
|