/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
H A D | SSLUtilsTest.java | 54 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | AddressTest.java | 32 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/owasp/sanitizer/src/main/org/owasp/html/ |
H A D | FilterUrlByProtocolAttributePolicy.java | 40 * 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...] |
H A D | HtmlPolicyBuilder.java | 331 // policy author wants to allow certain URL protocols or wants to deal 371 * Adds to the set of protocols that are allowed in URL attributes. 375 * This is done regardless of whether any protocols have been allowed, so 377 * not white-listing any protocols, effectively disallows the "href" 381 * protocols if you might use this policy with untrusted code. 383 public HtmlPolicyBuilder allowUrlProtocols(String... protocols) { argument 390 for (String protocol : protocols) { 400 public HtmlPolicyBuilder disallowUrlProtocols(String... protocols) { argument 402 for (String protocol : protocols) { 548 // This is done regardless of whether any protocols hav [all...] |
/external/curl/lib/ |
H A D | version.c | 187 static const char * const protocols[] = { variable 331 protocols,
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
H A D | SSLUtils.java | 155 * 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 D | OpenSSLServerSocketImpl.java | 78 * 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);
|
H A D | OpenSSLEngineSocketImpl.java | 173 public void setEnabledProtocols(String[] protocols) { argument 174 super.setEnabledProtocols(protocols);
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
H A D | Benchmark.java | 84 /** 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);
|
/external/okhttp/android/main/java/com/squareup/okhttp/internal/ |
H A D | Platform.java | 103 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/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/ |
H A D | Main.java | 83 private static String protocols() { method in class:Main 135 System.out.println("Protocols: " + protocols());
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
H A D | Address.java | 43 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 D | OkHttpClient.java | 123 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/mtpd/ |
H A D | mtpd.c | 44 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/okhttp/android/test/java/com/squareup/okhttp/internal/ |
H A D | PlatformTest.java | 58 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/src/main/java/com/squareup/okhttp/internal/ |
H A D | Platform.java | 103 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
H A D | RouteSelectorTest.java | 71 private final List<Protocol> protocols = Arrays.asList(Protocol.HTTP_1_1); field in class:RouteSelectorTest 118 authenticator, proxyA, protocols, connectionSpecs, proxySelector); 133 authenticator, NO_PROXY, protocols, connectionSpecs, proxySelector); 343 protocols, connectionSpecs, proxySelector); 348 hostnameVerifier, null, authenticator, null, protocols, connectionSpecs, proxySelector);
|
/external/conscrypt/android-stub/src/main/java/com/android/org/conscrypt/ |
H A D | OpenSSLSocketImpl.java | 160 public void setEnabledProtocols(String[] protocols) { argument
|
/external/conscrypt/android-stub/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketImpl.java | 160 public void setEnabledProtocols(String[] protocols) { argument
|
/external/curl/lib/vtls/ |
H A D | cyassl.c | 354 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...] |
H A D | polarssl.c | 374 static const char* protocols[3]; local 379 protocols[cur++] = NGHTTP2_PROTO_VERSION_ID; 384 protocols[cur++] = ALPN_HTTP_1_1; 387 protocols[cur] = NULL; 389 ssl_set_alpn_protocols(&connssl->ssl, protocols);
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
H A D | MockWebServer.java | 130 private List<Protocol> protocols field in class:MockWebServer 236 * Indicates the protocols supported by ALPN on incoming HTTPS 240 * @param protocols the protocols to use, in order of preference. The list 243 public void setProtocols(List<Protocol> protocols) { argument 244 protocols = Util.immutableList(protocols); 245 if (!protocols.contains(Protocol.HTTP_1_1)) { 246 throw new IllegalArgumentException("protocols doesn't contain http/1.1: " + protocols); [all...] |
/external/strace/ |
H A D | socketutils.c | 440 } 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/conscrypt/android/src/main/java/org/conscrypt/ |
H A D | KitKatPlatformOpenSSLSocketImplAdapter.java | 302 public void setEnabledProtocols(String[] protocols) { argument 303 delegate.setEnabledProtocols(protocols);
|
H A D | PreKitKatPlatformOpenSSLSocketImplAdapter.java | 302 public void setEnabledProtocols(String[] protocols) { argument 303 delegate.setEnabledProtocols(protocols);
|