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

Side by Side Diff: dart/runtime/bin/secure_socket.h

Issue 625953002: Support for the ALPN extension of the TLS protocol for Client and Server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test for ALPN negotiation Created 6 years, 2 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 | Annotate | Revision Log
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 #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 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 filter_(NULL) { } 54 filter_(NULL) { }
55 55
56 void Init(Dart_Handle dart_this); 56 void Init(Dart_Handle dart_this);
57 void Connect(const char* host, 57 void Connect(const char* host,
58 RawAddr* raw_addr, 58 RawAddr* raw_addr,
59 int port, 59 int port,
60 bool is_server, 60 bool is_server,
61 const char* certificate_name, 61 const char* certificate_name,
62 bool request_client_certificate, 62 bool request_client_certificate,
63 bool require_client_certificate, 63 bool require_client_certificate,
64 bool send_client_certificate); 64 bool send_client_certificate,
65 uint8_t *protocols,
66 intptr_t protocols_len);
65 void Destroy(); 67 void Destroy();
66 void Handshake(); 68 void Handshake();
69 void GetSelectedProtocol(Dart_NativeArguments args);
67 void Renegotiate(bool use_session_cache, 70 void Renegotiate(bool use_session_cache,
68 bool request_client_certificate, 71 bool request_client_certificate,
69 bool require_client_certificate); 72 bool require_client_certificate);
70 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); 73 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete);
71 void RegisterBadCertificateCallback(Dart_Handle callback); 74 void RegisterBadCertificateCallback(Dart_Handle callback);
72 Dart_Handle bad_certificate_callback() { 75 Dart_Handle bad_certificate_callback() {
73 return Dart_HandleFromPersistent(bad_certificate_callback_); 76 return Dart_HandleFromPersistent(bad_certificate_callback_);
74 } 77 }
75 intptr_t ProcessReadPlaintextBuffer(int start, int end); 78 intptr_t ProcessReadPlaintextBuffer(int start, int end);
76 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, 79 intptr_t ProcessWritePlaintextBuffer(int start1, int end1,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void InitializeBuffers(Dart_Handle dart_this); 117 void InitializeBuffers(Dart_Handle dart_this);
115 void InitializePlatformData(); 118 void InitializePlatformData();
116 119
117 DISALLOW_COPY_AND_ASSIGN(SSLFilter); 120 DISALLOW_COPY_AND_ASSIGN(SSLFilter);
118 }; 121 };
119 122
120 } // namespace bin 123 } // namespace bin
121 } // namespace dart 124 } // namespace dart
122 125
123 #endif // BIN_SECURE_SOCKET_H_ 126 #endif // BIN_SECURE_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698