/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
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) { 65 int numProtocols = protocols.length; 68 out[i] = new String(protocols[i]); 73 private static byte[] getExpectedEncodedBytes(byte[][] protocols) { 74 int numProtocols = protocols.length; 76 for (byte[] protocol : protocols) { 81 byte[] protocol = 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/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++) {
|
tool_help.c | 171 " --proto PROTOCOLS Enable/disable PROTOCOLS", 173 " --proto-redir PROTOCOLS Enable/disable PROTOCOLS on redirect", 310 if(curlinfo->protocols) { 311 printf("Protocols: "); 312 for(proto = curlinfo->protocols; *proto; ++proto) {
|
/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/common/src/main/java/org/conscrypt/ |
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) { 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];
|
/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;
|
/external/strace/ |
socketutils.c | 440 } protocols[] = { variable in typeref:struct:__anon30517 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[i].print [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
ServerSocketFactoryTest.java | 76 String[] protocols = { local 80 ServerSocketFactory ssFactory = new SecureServerSocketFactory(null, protocols);
|
/external/okhttp/android/main/java/com/squareup/okhttp/internal/ |
Platform.java | 103 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { 116 Object[] parameters = { concatLengthPrefixed(protocols) }; 207 static byte[] concatLengthPrefixed(List<Protocol> protocols) { 209 for (int i = 0, size = protocols.size(); i < size; i++) { 210 Protocol protocol = protocols.get(i);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
pickletester.py | 18 # Tests that try a number of pickle protocols should have a 19 # for proto in protocols: 22 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 149 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for 433 for proto in protocols: 453 for proto in protocols: 483 for proto in protocols: 492 for proto in protocols: 502 for proto in protocols: 511 for proto in protocols [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
pickletester.py | 18 # Tests that try a number of pickle protocols should have a 19 # for proto in protocols: 22 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 149 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for 433 for proto in protocols: 453 for proto in protocols: 483 for proto in protocols: 492 for proto in protocols: 502 for proto in protocols: 511 for proto in protocols [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
pickletester.py | 18 # Tests that try a number of pickle protocols should have a 19 # for proto in protocols: 22 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 149 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for 433 for proto in protocols: 453 for proto in protocols: 483 for proto in protocols: 492 for proto in protocols: 502 for proto in protocols: 511 for proto in protocols [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
pickletester.py | 18 # Tests that try a number of pickle protocols should have a 19 # for proto in protocols: 22 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 149 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for 433 for proto in protocols: 453 for proto in protocols: 483 for proto in protocols: 492 for proto in protocols: 502 for proto in protocols: 511 for proto in protocols [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
pickletester.py | 11 # Tests that try a number of pickle protocols should have a
12 # for proto in protocols:
15 protocols = range(pickle.HIGHEST_PROTOCOL + 1)
variable 127 # DATA0 .. DATA2 are the pickles we expect under the various protocols, for
411 for proto in protocols:
431 for proto in protocols:
461 for proto in protocols:
470 for proto in protocols:
480 for proto in protocols:
489 for proto in protocols: [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLParametersTest.java | 52 String[] protocols = new String[] { "baz", null, "qux" }; local 53 SSLParameters p = new SSLParameters(cipherSuites, protocols); 57 assertNotSame(protocols, p.getProtocols()); 59 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); 84 String[] protocols = new String[] { "fnord" }; local 85 String[] copy = protocols.clone(); 88 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols()));
|
SSLServerSocketTest.java | 52 String[] protocols = new String[] {socket.getSupportedProtocols()[0]}; local 53 socket.setEnabledProtocols(protocols); 54 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols()));
|
/external/webrtc/webrtc/base/ |
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());
|
/prebuilts/go/darwin-x86/src/net/ |
lookup_unix.go | 16 // readProtocols loads contents of /etc/protocols into protocols map 19 if file, err := open("/etc/protocols"); err == nil { 30 if _, ok := protocols[f[0]]; !ok { 31 protocols[f[0]] = proto 34 if _, ok := protocols[alias]; !ok { 35 protocols[alias] = proto 44 // lookupProtocol looks up IP protocol name in /etc/protocols and
|
/prebuilts/go/linux-x86/src/net/ |
lookup_unix.go | 16 // readProtocols loads contents of /etc/protocols into protocols map 19 if file, err := open("/etc/protocols"); err == nil { 30 if _, ok := protocols[f[0]]; !ok { 31 protocols[f[0]] = proto 34 if _, ok := protocols[alias]; !ok { 35 protocols[alias] = proto 44 // lookupProtocol looks up IP protocol name in /etc/protocols and
|