Searched refs:protocols (Results 1 - 25 of 112) sorted by relevance

12345

/external/conscrypt/openjdk/src/test/java/org/conscrypt/
H A DSSLUtilsTest.java54 byte[][] protocols = new byte[][]{
59 byte[] expected = getExpectedEncodedBytes(protocols);
60 byte[] actual = SSLUtils.toLengthPrefixedList(toStrings(protocols));
64 private static String[] toStrings(byte[][] protocols) { argument
65 int numProtocols = protocols.length;
68 out[i] = new String(protocols[i]);
73 private static byte[] getExpectedEncodedBytes(byte[][] protocols) { argument
74 int numProtocols = protocols.length;
76 for (byte[] protocol : protocols) {
81 byte[] protocol = protocols[
[all...]
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DFilterUrlByProtocolAttributePolicy.java40 * URLs with protocols must match the protocol set passed to the constructor.
41 * URLs without protocols but which specify an origin different from the
59 private final ImmutableSet<String> protocols; field in class:FilterUrlByProtocolAttributePolicy
62 Iterable<? extends String> protocols) {
63 this.protocols = ImmutableSet.copyOf(protocols);
74 // or the protocols by which HTML is normally served are OK.
81 if (!protocols.contains(protocol)) { return null; }
89 return protocols.contains("http") && protocols
61 FilterUrlByProtocolAttributePolicy( Iterable<? extends String> protocols) argument
[all...]
/external/libvncserver/webclients/novnc/include/
H A Dwebsock.js207 init: function (protocols, ws_schema) {
235 // Default protocols if not specified
236 if (typeof(protocols) === "undefined") {
238 protocols = ['binary', 'base64'];
240 protocols = 'base64';
245 if (protocols === 'binary') {
249 if (typeof(protocols) === 'object') {
252 for (var i = 0; i < protocols.length; i++) {
253 if (protocols[i] === 'binary') {
256 new_protocols.push(protocols[
[all...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DAddressTest.java32 private List<Protocol> protocols = Util.immutableList(Protocol.HTTP_1_1); field in class:AddressTest
38 authenticator, null, protocols, connectionSpecs, proxySelector);
40 authenticator, null, protocols, connectionSpecs, proxySelector);
47 authenticator, null, protocols, connectionSpecs, new RecordingProxySelector());
49 authenticator, null, protocols, connectionSpecs, new RecordingProxySelector());
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DAddress.java43 final List<Protocol> protocols; field in class:Address
54 List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) {
70 if (protocols == null) throw new IllegalArgumentException("protocols == null");
71 this.protocols = Util.immutableList(protocols);
130 * Returns the protocols the client supports. This method always returns a
134 return protocols;
178 && this.protocols.equals(that.protocols)
51 Address(String uriHost, int uriPort, Dns dns, SocketFactory socketFactory, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier, CertificatePinner certificatePinner, Authenticator authenticator, Proxy proxy, List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) argument
[all...]
H A DOkHttpClient.java123 private List<Protocol> protocols; field in class:OkHttpClient
157 this.protocols = okHttpClient.protocols;
484 * Configure the protocols used by this client to communicate with remote
486 * available, falling back to more ubiquitous protocols. Applications should
490 * <p>The following protocols are currently supported:
498 * support for transitional protocols. The http/1.1 transport will never be
501 * <p>If multiple protocols are specified, <a
509 * @param protocols the protocols t
513 setProtocols(List<Protocol> protocols) argument
[all...]
/external/curl/src/
H A Dtool_libinfo.c43 * CURLPROTO_* bits indicating which protocols are actually built
87 /* Build CURLPROTO_* bit pattern with libcurl's built-in protocols */
89 if(curlinfo->protocols) {
90 for(proto = curlinfo->protocols; *proto; proto++) {
H A Dtool_help.c310 if(curlinfo->protocols) {
312 for(proto = curlinfo->protocols; *proto; ++proto) {
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
H A DPlatform.java103 List<Protocol> protocols) {
272 SSLSocket sslSocket, String hostname, List<Protocol> protocols) {
281 Object[] parameters = { concatLengthPrefixed(protocols) };
368 SSLSocket sslSocket, String hostname, List<Protocol> protocols) {
369 List<String> names = new ArrayList<>(protocols.size());
370 for (int i = 0, size = protocols.size(); i < size; i++) {
371 Protocol protocol = protocols.get(i);
413 /** This peer's supported protocols. */
414 private final List<String> protocols; field in class:Platform.JettyNegoProvider
420 public JettyNegoProvider(List<String> protocols) { argument
102 configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols) argument
271 configureTlsExtensions( SSLSocket sslSocket, String hostname, List<Protocol> protocols) argument
367 configureTlsExtensions( SSLSocket sslSocket, String hostname, List<Protocol> protocols) argument
461 concatLengthPrefixed(List<Protocol> protocols) argument
[all...]
/external/conscrypt/common/src/main/java/org/conscrypt/
H A DSSLUtils.java155 * Encodes a list of protocols into the wire-format (length-prefixed 8-bit strings).
158 * @param protocols the list of protocols to be encoded
161 public static byte[] toLengthPrefixedList(String... protocols) { argument
164 for (int i = 0; i < protocols.length; ++i) {
165 int protocolLength = protocols[i].length();
171 + protocolLength + "): " + protocols[i]);
179 for (int dataIndex = 0, i = 0; i < protocols.length; ++i) {
180 String protocol = protocols[i];
H A DOpenSSLServerSocketImpl.java78 * The names of the protocols' versions that may be used on this SSL
80 * @return an array of protocols names
88 * The names of the protocols' versions that in use on this SSL connection.
90 * @return an array of protocols names
98 * This method enables the protocols' versions listed by
101 * @param protocols names of all the protocols to enable.
107 public void setEnabledProtocols(String[] protocols) { argument
108 sslParameters.setEnabledProtocols(protocols);
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/
H A DSRWebSocket.h63 - (id)initWithURLRequest:(NSURLRequest *)request protocols:(NSArray *)protocols;
67 - (id)initWithURL:(NSURL *)url protocols:(NSArray *)protocols;
/external/strace/
H A Dsocketutils.c440 } protocols[] = { variable in typeref:struct:__anon17912
454 i < ARRAY_SIZE(protocols); ++i) {
455 if (protocols[i].name && !strcmp(name, protocols[i].name))
467 if ((unsigned int) proto >= ARRAY_SIZE(protocols) ||
468 (proto != SOCK_PROTO_UNKNOWN && !protocols[proto].print))
477 r = protocols[proto].print(fd, inode);
479 tprintf("%s:[%lu]", protocols[proto].name, inode);
485 i < ARRAY_SIZE(protocols); ++i) {
486 if (!protocols[
[all...]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
H A DServerSocketFactoryTest.java76 String[] protocols = {
80 ServerSocketFactory ssFactory = new SecureServerSocketFactory(null, protocols);
/external/okhttp/android/main/java/com/squareup/okhttp/internal/
H A DPlatform.java103 SSLSocket sslSocket, String hostname, List<Protocol> protocols) {
116 Object[] parameters = { concatLengthPrefixed(protocols) };
207 static byte[] concatLengthPrefixed(List<Protocol> protocols) { argument
209 for (int i = 0, size = protocols.size(); i < size; i++) {
210 Protocol protocol = protocols.get(i);
102 configureTlsExtensions( SSLSocket sslSocket, String hostname, List<Protocol> protocols) argument
/external/libvncserver/webclients/novnc/include/web-socket-js/
H A Dweb_socket.js43 * @param {array or string} protocols
48 window.WebSocket = function(url, protocols, proxyHost, proxyPort, headers) {
55 if (!protocols) {
56 protocols = [];
57 } else if (typeof protocols == "string") {
58 protocols = [protocols];
66 self.__id, url, protocols, proxyHost || null, proxyPort || 0, headers || null);
/external/webrtc/webrtc/base/
H A Dnethelpers.cc130 scoped_ptr<char[]> protocols;
136 // Check for protocols in a do-while loop until we provide a buffer large
140 protocols.reset(new char[protbuff_size]);
141 protocol_infos = reinterpret_cast<LPWSAPROTOCOL_INFOW>(protocols.get());
/external/curl/
H A Dcurl-config.in46 --protocols newline separated list of enabled protocols
91 --protocols)
/external/okhttp/android/test/java/com/squareup/okhttp/internal/
H A DPlatformTest.java58 List<Protocol> protocols = Arrays.asList(Protocol.HTTP_1_1, Protocol.SPDY_3);
59 platform.configureTlsExtensions(arbitrarySocketImpl, "host", protocols);
61 platform.configureTlsExtensions(npnOnlySSLSocketImpl, "host", protocols);
64 platform.configureTlsExtensions(openSslSocket, "host", protocols);
67 assertArrayEquals(Platform.concatLengthPrefixed(protocols), openSslSocket.alpnProtocols);
195 public void setEnabledProtocols(String[] protocols) { argument
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
H A DConnectionSpecSelectorTest.java135 String[] protocols = new String[tlsVersions.length];
137 protocols[i] = tlsVersions[i].javaName();
139 return protocols;
/external/mtpd/
H A Dmtpd.c44 static struct protocol *protocols[] = {&l2tp, &pptp, NULL}; variable in typeref:struct:protocol
64 for (i = 0; protocols[i]; ++i) {
65 struct protocol *p = protocols[i];
75 for (i = 0; protocols[i]; ++i) {
76 struct protocol *p = protocols[i];
/external/ppp/pppd/
H A Ddemand.c109 for (i = 0; (protp = protocols[i]) != NULL; ++i)
125 for (i = 0; (protp = protocols[i]) != NULL; ++i)
142 for (i = 0; (protp = protocols[i]) != NULL; ++i)
168 for (i = 0; (protp = protocols[i]) != NULL; ++i)
354 for (i = 0; (protp = protocols[i]) != NULL; ++i) {
/external/curl/lib/vtls/
H A Dcyassl.c354 char protocols[128]; local
355 *protocols = '\0';
358 protocols in descending order of preference, eg: "h2,http/1.1" */
362 strcpy(protocols + strlen(protocols), NGHTTP2_PROTO_VERSION_ID ",");
367 strcpy(protocols + strlen(protocols), ALPN_HTTP_1_1);
370 if(wolfSSL_UseALPN(conssl->handle, protocols,
371 (unsigned)strlen(protocols),
373 failf(data, "SSL: failed setting ALPN protocols");
[all...]
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
H A DOkHttp.java38 client.setProtocols(benchmark.protocols);
H A DBenchmark.java84 /** Which ALPN protocols are in use. Only useful with TLS. */
85 List<Protocol> protocols = Arrays.asList(Protocol.HTTP_1_1); field in class:Benchmark
146 modifiers.addAll(protocols);
166 server.setProtocols(protocols);

Completed in 663 milliseconds

12345