OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 V(SecureSocket_FilterPointer, 1) \ | 101 V(SecureSocket_FilterPointer, 1) \ |
102 V(SecureSocket_GetSelectedProtocol, 1) \ | 102 V(SecureSocket_GetSelectedProtocol, 1) \ |
103 V(SecureSocket_Handshake, 1) \ | 103 V(SecureSocket_Handshake, 1) \ |
104 V(SecureSocket_Init, 1) \ | 104 V(SecureSocket_Init, 1) \ |
105 V(SecureSocket_PeerCertificate, 1) \ | 105 V(SecureSocket_PeerCertificate, 1) \ |
106 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 106 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
107 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 107 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
108 V(SecureSocket_Renegotiate, 4) \ | 108 V(SecureSocket_Renegotiate, 4) \ |
109 V(SecurityContext_Allocate, 1) \ | 109 V(SecurityContext_Allocate, 1) \ |
110 V(SecurityContext_UsePrivateKey, 3) \ | 110 V(SecurityContext_UsePrivateKey, 3) \ |
| 111 V(SecurityContext_UsePrivateKeyBytes, 3) \ |
111 V(SecurityContext_SetAlpnProtocols, 3) \ | 112 V(SecurityContext_SetAlpnProtocols, 3) \ |
112 V(SecurityContext_SetClientAuthorities, 2) \ | 113 V(SecurityContext_SetClientAuthorities, 2) \ |
113 V(SecurityContext_SetTrustedCertificates, 3) \ | 114 V(SecurityContext_SetTrustedCertificates, 3) \ |
114 V(SecurityContext_TrustBuiltinRoots, 1) \ | 115 V(SecurityContext_TrustBuiltinRoots, 1) \ |
115 V(SecurityContext_UseCertificateChain, 2) \ | 116 V(SecurityContext_UseCertificateChain, 2) \ |
116 V(ServerSocket_Accept, 2) \ | 117 V(ServerSocket_Accept, 2) \ |
117 V(ServerSocket_CreateBindListen, 6) \ | 118 V(ServerSocket_CreateBindListen, 6) \ |
118 V(Socket_CreateConnect, 3) \ | 119 V(Socket_CreateConnect, 3) \ |
119 V(Socket_CreateBindConnect, 4) \ | 120 V(Socket_CreateBindConnect, 4) \ |
120 V(Socket_CreateBindDatagram, 4) \ | 121 V(Socket_CreateBindDatagram, 4) \ |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 struct NativeEntries* entry = &(IOEntries[i]); | 186 struct NativeEntries* entry = &(IOEntries[i]); |
186 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 187 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
187 return reinterpret_cast<const uint8_t*>(entry->name_); | 188 return reinterpret_cast<const uint8_t*>(entry->name_); |
188 } | 189 } |
189 } | 190 } |
190 return NULL; | 191 return NULL; |
191 } | 192 } |
192 | 193 |
193 } // namespace bin | 194 } // namespace bin |
194 } // namespace dart | 195 } // namespace dart |
OLD | NEW |