/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
H A D | SSLUtilsTest.java | 59 byte[][] protocols = new byte[][]{ 64 byte[] expected = getExpectedEncodedBytes(protocols); 65 byte[] actual = SSLUtils.toLengthPrefixedList(toStrings(protocols)); 101 private static String[] toStrings(byte[][] protocols) { argument 102 int numProtocols = protocols.length; 105 out[i] = new String(protocols[i], UTF_8); 110 private static byte[] getExpectedEncodedBytes(byte[][] protocols) { argument 111 int numProtocols = protocols.length; 113 for (byte[] protocol : protocols) { 118 byte[] protocol = protocols[ [all...] |
/external/curl/docs/cmdline-opts/ |
H A D | proto-redir.d | 2 Arg: <protocols> 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.
|
H A D | proto.d | 2 Arg: <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.
|
H A D | gen.pl | 66 sub protocols { subroutine 94 my $protocols; 124 $protocols=$1; 182 if($protocols) { 183 print protocols($standalone, $protocols); 236 my $protocols; 251 $protocols=$1; 265 $protolong{$long}=$protocols;
|
/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...] |
/external/libvncserver/webclients/novnc/include/ |
H A D | 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[ [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/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/curl/src/ |
H A D | 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++) {
|
H A D | tool_help.c | 339 if(curlinfo->protocols) { 341 for(proto = curlinfo->protocols; *proto; ++proto) {
|
/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/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLServerSocketTest.java | 61 String[] protocols = new String[] {socket.getSupportedProtocols()[0]}; 62 socket.setEnabledProtocols(protocols); 63 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols()));
|
H A D | SSLParametersTest.java | 66 String[] protocols = new String[] {"baz", null, "qux"}; 67 SSLParameters p = new SSLParameters(cipherSuites, protocols); 71 assertNotSame(protocols, p.getProtocols()); 73 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); 100 String[] protocols = new String[] {"fnord"}; 101 String[] copy = protocols.clone(); 104 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols()));
|
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/ |
H A D | SocketType.java | 24 ClientEndpoint newClient(ChannelType channelType, int port, String[] protocols, argument 27 factories.clientFactory, channelType, port, protocols, ciphers); 31 String[] protocols, String[] ciphers) throws IOException { 33 channelType, messageSize, protocols, ciphers); 30 newServer(ChannelType channelType, int messageSize, String[] protocols, String[] ciphers) argument
|
H A D | ClientEndpoint.java | 36 String[] protocols, String[] ciphers) throws IOException { 39 socket.setEnabledProtocols(protocols); 35 ClientEndpoint(SSLSocketFactory socketFactory, ChannelType channelType, int port, String[] protocols, String[] ciphers) argument
|
H A D | ServerEndpoint.java | 61 private final String[] protocols; field in class:ServerEndpoint 72 ChannelType channelType, int messageSize, String[] protocols, 78 this.protocols = protocols; 124 socket.setEnabledProtocols(protocols); 71 ServerEndpoint(SSLSocketFactory socketFactory, SSLServerSocketFactory serverSocketFactory, ChannelType channelType, int messageSize, String[] protocols, String[] cipherSuites) argument
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/ |
H A D | SRWebSocket.h | 63 - (id)initWithURLRequest:(NSURLRequest *)request protocols:(NSArray *)protocols; 67 - (id)initWithURL:(NSURL *)url protocols:(NSArray *)protocols;
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
H A D | SSLParametersImpl.java | 40 * about enabled cipher suites and protocols, 71 // protocols enabled for SSL connection 73 // set to indicate when obsolete protocols are filtered 118 ServerSessionContext serverSessionContext, String[] protocols) 147 // initialize the list of cipher suites and protocols enabled by default 149 protocols == null ? NativeCrypto.DEFAULT_PROTOCOLS : protocols).clone(); 221 * @return the set of enabled protocols 228 * Sets the list of available protocols for use in SSL connection. 229 * @throws IllegalArgumentException if {@code protocols 116 SSLParametersImpl(KeyManager[] kms, TrustManager[] tms, SecureRandom sr, ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext, String[] protocols) argument 231 setEnabledProtocols(String[] protocols) argument 386 filterFromProtocols(String[] protocols, String obsoleteProtocol) argument [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
H A D | ServerSocketFactoryTest.java | 76 String[] protocols = { 80 ServerSocketFactory ssFactory = new SecureServerSocketFactory(null, 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/strace/ |
H A D | socketutils.c | 453 } protocols[] = { variable in typeref:struct:__anon19201 467 i < ARRAY_SIZE(protocols); ++i) { 468 if (protocols[i].name && !strcmp(name, protocols[i].name)) 478 if ((unsigned int) proto >= ARRAY_SIZE(protocols) || 479 (proto != SOCK_PROTO_UNKNOWN && !protocols[proto].get)) 488 details = protocols[proto].get(fd, inode); 492 i < ARRAY_SIZE(protocols); ++i) { 493 if (!protocols[i].get) 495 details = protocols[ [all...] |
/external/python/cpython2/Lib/test/ |
H A D | pickletester.py | 21 # Tests that try a number of pickle protocols should have a 22 # for proto in protocols: 25 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 205 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for 830 for proto in protocols: 850 for proto in protocols: 874 for proto in protocols: 884 for proto in protocols: 896 for proto in protocols: 907 for proto in protocols [all...] |
/external/libvncserver/webclients/novnc/include/web-socket-js/ |
H A D | web_socket.js | 43 * @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 D | nethelpers.cc | 130 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());
|