/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/ |
EndpointFactory.java | 9 ClientEndpoint newClient(ChannelType channelType, int port, String[] protocols, 13 String[] protocols, String[] ciphers) throws IOException;
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ApplicationProtocolSelector.java | 33 * @param protocols The list of client-supplied protocols 41 public abstract String selectApplicationProtocol(SSLEngine engine, List<String> protocols); 47 * @param protocols The list of client-supplied protocols 55 public abstract String selectApplicationProtocol(SSLSocket socket, List<String> protocols);
|
ApplicationProtocolSelectorAdapter.java | 49 * Performs the ALPN protocol selection from the given list of length-delimited peer protocols. 50 * @param encodedProtocols the peer protocols in length-delimited form. 60 // Decode the protocols. 61 List<String> protocols = Arrays.asList(SSLUtils.decodeProtocols(encodedProtocols)); local 66 selected = selector.selectApplicationProtocol(engine, protocols); 68 selected = selector.selectApplicationProtocol(socket, protocols); 75 for (String protocol : protocols) {
|
SSLUtils.java | 359 * Decodes the given list of protocols into {@link String}s. 360 * @param protocols the encoded protocol list 361 * @return the decoded protocols or {@link EmptyArray#BYTE} if {@code protocols} is 363 * @throws NullPointerException if protocols is {@code null}. 365 static String[] decodeProtocols(byte[] protocols) { 366 if (protocols.length == 0) { 371 for (int i = 0; i < protocols.length;) { 372 int protocolLength = protocols[i]; 373 if (protocolLength < 0 || protocolLength > protocols.length - i) [all...] |
SSLParametersImpl.java | 40 * about enabled cipher suites and protocols, 69 // protocols enabled for SSL connection 71 // set to indicate when obsolete protocols are filtered 117 ServerSessionContext serverSessionContext, String[] protocols) 139 // initialize the list of cipher suites and protocols enabled by default 141 protocols == null ? NativeCrypto.DEFAULT_PROTOCOLS : protocols).clone(); 216 * @return the set of enabled protocols 223 * Sets the list of available protocols for use in SSL connection. 224 * @throws IllegalArgumentException if {@code protocols == null [all...] |
Java8EngineSocket.java | 66 public String selectApplicationProtocol(SSLEngine socket, List<String> protocols) { 71 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { 72 return selector.apply(socket, protocols);
|
Java8FileDescriptorSocket.java | 66 public String selectApplicationProtocol(SSLEngine socket, List<String> protocols) { 71 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { 72 return selector.apply(socket, protocols);
|
/external/curl/docs/cmdline-opts/ |
proto-redir.d | 2 Arg: <protocols> 3 Help: Enable/disable PROTOCOLS on redirect 6 Tells curl to limit what protocols it may use on redirect. Protocols denied by 7 --proto are not overridden by this option. See --proto for how protocols are 14 By default curl will allow all protocols on redirect except several disabled 17 protocols on redirect, including those disabled for security.
|
proto.d | 2 Arg: <protocols> 3 Help: Enable/disable PROTOCOLS 7 Tells curl to limit what protocols it may use in the transfer. Protocols are 13 Permit this protocol in addition to protocols already permitted (this is 17 Deny this protocol, removing it from the list of protocols already permitted. 29 uses the default protocols, but disables ftps 38 Unknown protocols produce a warning. This allows scripts to safely rely on 39 being able to disable potentially dangerous protocols, without relying upon 43 as concatenating the protocols into one instance of the option [all...] |
ssl-allow-beast.d | 6 TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer may
|
gen.pl | 82 sub protocols { subroutine 85 return ".SH \"PROTOCOLS\"\n$data\n"; 110 my $protocols; 138 elsif(/^Protocols: *(.*)/i) { 139 $protocols=$1; 189 if($protocols) { 190 print protocols($standalone, $protocols); 243 my $protocols; 257 elsif(/^Protocols: (.*)/i) [all...] |
/external/owasp/sanitizer/src/main/org/owasp/html/ |
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.contains("https") [all...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
SSLUtilsTest.java | 59 byte[][] protocols = new byte[][]{ 64 byte[] expected = getExpectedEncodedBytes(protocols); 65 byte[] actual = SSLUtils.encodeProtocols(toStrings(protocols)); 81 byte[][] protocols = new byte[][]{ 86 byte[] encoded = getExpectedEncodedBytes(protocols); 88 assertArrayEquals(toStrings(protocols), strings); 123 private static String[] toStrings(byte[][] protocols) { 124 int numProtocols = protocols.length; 127 out[i] = new String(protocols[i], UTF_8); 132 private static byte[] getExpectedEncodedBytes(byte[][] protocols) { [all...] |
ApplicationProtocolSelectorAdapterTest.java | 33 private static final String[] PROTOCOLS = new String[] {"a", "b", "c"}; 34 private static final byte[] PROTOCOL_BYTES = SSLUtils.encodeProtocols(PROTOCOLS); 63 for (String protocol : PROTOCOLS) { 75 private int select(byte[] protocols) { 76 return adapter.selectApplicationProtocol(protocols);
|
/external/libvncserver/webclients/novnc/include/ |
websock.js | 207 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[i]) [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLParameters.java | 40 * the list of protocols to be allowed, the endpoint identification 69 private String[] protocols; field in class:SSLParameters 81 * The values of cipherSuites, protocols, cryptographic algorithm 105 * and protocols. 109 * <code>setCipherSuites(cipherSuites); setProtocols(protocols);</code>. 112 * @param protocols the array of protocols (or null) 114 public SSLParameters(String[] cipherSuites, String[] protocols) { 116 setProtocols(protocols); 144 * Returns a copy of the array of protocols or null if non [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
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/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
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) [all...] |
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: 492 * <li><a href="http://www.w3.org/Protocols/rfc2616/rfc2616.html">http/1.1</a> 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 to use, in order of preference. The lis [all...] |
/external/curl/src/ |
tool_libinfo.c | 43 * 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++) {
|
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/ |
AndroidEndpointFactory.java | 25 public ClientEndpoint newClient(ChannelType channelType, int port, String[] protocols, 28 factories.clientFactory, channelType, port, protocols, ciphers); 33 String[] protocols, String[] ciphers) throws IOException { 35 channelType, messageSize, protocols, ciphers);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
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) { [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
SSLServerSocketTest.java | 61 String[] protocols = new String[] {socket.getSupportedProtocols()[0]}; local 62 socket.setEnabledProtocols(protocols); 63 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols()));
|
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
OpenJdkEndpointFactory.java | 27 public ClientEndpoint newClient(ChannelType channelType, int port, String[] protocols, 30 factories.clientFactory, channelType, port, protocols, ciphers); 35 String[] protocols, String[] ciphers) throws IOException { 37 channelType, messageSize, protocols, ciphers);
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/ |
SRWebSocket.h | 62 // Protocols should be an array of strings that turn into Sec-WebSocket-Protocol. 63 - (id)initWithURLRequest:(NSURLRequest *)request protocols:(NSArray *)protocols; 67 - (id)initWithURL:(NSURL *)url protocols:(NSArray *)protocols;
|