| OLD | NEW | 
|---|
| 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 #ifndef BIN_SECURE_SOCKET_H_ | 5 #ifndef BIN_SECURE_SOCKET_H_ | 
| 6 #define BIN_SECURE_SOCKET_H_ | 6 #define BIN_SECURE_SOCKET_H_ | 
| 7 | 7 | 
| 8 #ifdef DART_IO_SECURE_SOCKET_DISABLED | 8 #ifdef DART_IO_SECURE_SOCKET_DISABLED | 
| 9 #error "secure_socket.h can only be included on builds with SSL enabled" | 9 #error "secure_socket.h can only be included on builds with SSL enabled" | 
| 10 #endif | 10 #endif | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 61         bad_certificate_callback_(NULL), | 61         bad_certificate_callback_(NULL), | 
| 62         in_handshake_(false), | 62         in_handshake_(false), | 
| 63         hostname_(NULL) { } | 63         hostname_(NULL) { } | 
| 64 | 64 | 
| 65   void Init(Dart_Handle dart_this); | 65   void Init(Dart_Handle dart_this); | 
| 66   void Connect(const char* hostname, | 66   void Connect(const char* hostname, | 
| 67                SSL_CTX* context, | 67                SSL_CTX* context, | 
| 68                bool is_server, | 68                bool is_server, | 
| 69                bool request_client_certificate, | 69                bool request_client_certificate, | 
| 70                bool require_client_certificate, | 70                bool require_client_certificate, | 
| 71                bool send_client_certificate, |  | 
| 72                Dart_Handle protocols_handle); | 71                Dart_Handle protocols_handle); | 
| 73   void Destroy(); | 72   void Destroy(); | 
| 74   void Handshake(); | 73   void Handshake(); | 
| 75   void GetSelectedProtocol(Dart_NativeArguments args); | 74   void GetSelectedProtocol(Dart_NativeArguments args); | 
| 76   void Renegotiate(bool use_session_cache, | 75   void Renegotiate(bool use_session_cache, | 
| 77                    bool request_client_certificate, | 76                    bool request_client_certificate, | 
| 78                    bool require_client_certificate); | 77                    bool require_client_certificate); | 
| 79   void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 78   void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); | 
| 80   void RegisterBadCertificateCallback(Dart_Handle callback); | 79   void RegisterBadCertificateCallback(Dart_Handle callback); | 
| 81   Dart_Handle bad_certificate_callback() { | 80   Dart_Handle bad_certificate_callback() { | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 125   void InitializeBuffers(Dart_Handle dart_this); | 124   void InitializeBuffers(Dart_Handle dart_this); | 
| 126   void InitializePlatformData(); | 125   void InitializePlatformData(); | 
| 127 | 126 | 
| 128   DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 127   DISALLOW_COPY_AND_ASSIGN(SSLFilter); | 
| 129 }; | 128 }; | 
| 130 | 129 | 
| 131 }  // namespace bin | 130 }  // namespace bin | 
| 132 }  // namespace dart | 131 }  // namespace dart | 
| 133 | 132 | 
| 134 #endif  // BIN_SECURE_SOCKET_H_ | 133 #endif  // BIN_SECURE_SOCKET_H_ | 
| OLD | NEW | 
|---|