/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | SSLUtilsTest.java | 59 byte[][] protocols = new byte[][]{ in encodeProtocolsShouldSucceed() 64 byte[] expected = getExpectedEncodedBytes(protocols); in encodeProtocolsShouldSucceed() 65 byte[] actual = SSLUtils.encodeProtocols(toStrings(protocols)); in encodeProtocolsShouldSucceed() 81 byte[][] protocols = new byte[][]{ in decodeProtocolsShouldSucceed() 86 byte[] encoded = getExpectedEncodedBytes(protocols); in decodeProtocolsShouldSucceed() 88 assertArrayEquals(toStrings(protocols), strings); in decodeProtocolsShouldSucceed() 123 private static String[] toStrings(byte[][] protocols) { in toStrings() argument 124 int numProtocols = protocols.length; in toStrings() 127 out[i] = new String(protocols[i], UTF_8); in toStrings() 132 private static byte[] getExpectedEncodedBytes(byte[][] protocols) { in getExpectedEncodedBytes() argument [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | SSLUtils.java | 365 static String[] decodeProtocols(byte[] protocols) { in decodeProtocols() argument 366 if (protocols.length == 0) { in decodeProtocols() 371 for (int i = 0; i < protocols.length;) { in decodeProtocols() 372 int protocolLength = protocols[i]; in decodeProtocols() 373 if (protocolLength < 0 || protocolLength > protocols.length - i) { in decodeProtocols() 376 + "): " + (protocols.length < 50 in decodeProtocols() 377 ? Arrays.toString(protocols) : protocols.length + " byte array")); in decodeProtocols() 385 for (int i = 0, d = 0; i < protocols.length;) { in decodeProtocols() 386 int protocolLength = protocols[i]; in decodeProtocols() 388 ? new String(protocols, i + 1, protocolLength, US_ASCII) in decodeProtocols() [all …]
|
D | SSLParametersImpl.java | 117 ServerSessionContext serverSessionContext, String[] protocols) in SSLParametersImpl() argument 141 protocols == null ? NativeCrypto.DEFAULT_PROTOCOLS : protocols).clone(); in SSLParametersImpl() 226 void setEnabledProtocols(String[] protocols) { in setEnabledProtocols() argument 227 if (protocols == null) { in setEnabledProtocols() 231 filterFromProtocols(protocols, NativeCrypto.OBSOLETE_PROTOCOL_SSLV3); in setEnabledProtocols() 232 isEnabledProtocolsFiltered = protocols.length != filteredProtocols.length; in setEnabledProtocols() 241 void setApplicationProtocols(String[] protocols) { in setApplicationProtocols() argument 242 this.applicationProtocols = SSLUtils.encodeProtocols(protocols); in setApplicationProtocols() 372 private static String[] filterFromProtocols(String[] protocols, String obsoleteProtocol) { in filterFromProtocols() argument 373 if (protocols.length == 1 && obsoleteProtocol.equals(protocols[0])) { in filterFromProtocols() [all …]
|
D | ApplicationProtocolSelectorAdapter.java | 61 List<String> protocols = Arrays.asList(SSLUtils.decodeProtocols(encodedProtocols)); in selectApplicationProtocol() local 66 selected = selector.selectApplicationProtocol(engine, protocols); in selectApplicationProtocol() 68 selected = selector.selectApplicationProtocol(socket, protocols); in selectApplicationProtocol() 75 for (String protocol : protocols) { in selectApplicationProtocol()
|
D | Java8EngineWrapper.java | 210 public void setEnabledProtocols(String[] protocols) { in setEnabledProtocols() argument 211 delegate.setEnabledProtocols(protocols); in setEnabledProtocols() 278 void setApplicationProtocols(String[] protocols) { in setApplicationProtocols() argument 279 delegate.setApplicationProtocols(protocols); in setApplicationProtocols() 326 public String selectApplicationProtocol(SSLEngine engine, List<String> protocols) { in toApplicationProtocolSelector() 327 return selector.apply(engine, protocols); in toApplicationProtocolSelector() 331 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { in toApplicationProtocolSelector() argument
|
/external/libvncserver/webclients/novnc/include/ |
D | websock.js | 207 init: function (protocols, ws_schema) { argument 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]); 261 protocols = new_protocols; [all …]
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
D | FilterUrlByProtocolAttributePolicy.java | 59 private final ImmutableSet<String> protocols; field in FilterUrlByProtocolAttributePolicy 62 Iterable<? extends String> protocols) { in FilterUrlByProtocolAttributePolicy() argument 63 this.protocols = ImmutableSet.copyOf(protocols); in FilterUrlByProtocolAttributePolicy() 81 if (!protocols.contains(protocol)) { return null; } in apply() 89 return protocols.contains("http") && protocols.contains("https"); in allowProtocolRelativeUrls() 154 && protocols.equals(((FilterUrlByProtocolAttributePolicy) o).protocols); in equals() 159 return protocols.hashCode(); in hashCode()
|
/external/wayland-protocols/freedesktop.org/ |
D | README | 1 Wayland protocols 4 wayland-protocols contains Wayland protocols that add functionality not 5 available in the Wayland core protocol. Such protocols either add 8 wayland-protocols. 10 A protocol in wayland-protocols consists of a directory containing a set 21 the maintainers. Changes to such protocols will always be backward 33 is placed within the toplevel directory containing the protocols with the 34 same state. Stable protocols are placed in the +stable/+ directory, 35 unstable protocols are placed in the +unstable/+ directory, and 36 deprecated protocols are placed in the +deprecated/+ directory. [all …]
|
D | METADATA | 3 "wayland-protocols contains Wayland protocols that adds functionality not" 4 "available in the Wayland core protocol. Such protocols either adds" 7 "wayland-protocols." 12 value: "git://anon.freedesktop.org/wayland/wayland-protocols"
|
D | configure.ac | 8 AC_INIT([wayland-protocols], 11 [wayland-protocols], 37 wayland-protocols.pc 38 wayland-protocols-uninstalled.pc
|
/external/wayland-protocols/ |
D | README.android | 9 `git clone git://anongit.freedesktop.org/wayland/wayland-protocols`, 16 `meld freedesktop.org/ /path/to/freedesktop.org/wayland-protocols/` 33 src/third_party/wayland-protocols from your checkout. In particular these 35 * chromium.org/unstable/ and src/third_party/wayland-protocols/unstable/ 36 * chromium.org/LICENSE and src/third_party/wayland-protocols/LICENSE 37 * chromium.org/README.chromium and src/third_party/wayland-protocols/README.chromium 39 * src/third_party/wayland-protocols/include/ and 40 src/third_party/wayland-protocols/protocol both contain source code 42 * src/third_party/wayland-protocols/src (if you have it) is itself a clone 44 * src/third_party/wayland-protocols/OWNERS causes trouble with Android [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpClient.java | 123 private List<Protocol> protocols; field in OkHttpClient 157 this.protocols = okHttpClient.protocols; in OkHttpClient() 513 public OkHttpClient setProtocols(List<Protocol> protocols) { in setProtocols() argument 514 protocols = Util.immutableList(protocols); in setProtocols() 515 if (!protocols.contains(Protocol.HTTP_1_1)) { in setProtocols() 516 throw new IllegalArgumentException("protocols doesn't contain http/1.1: " + protocols); in setProtocols() 518 if (protocols.contains(Protocol.HTTP_1_0)) { in setProtocols() 519 throw new IllegalArgumentException("protocols must not contain http/1.0: " + protocols); in setProtocols() 521 if (protocols.contains(null)) { in setProtocols() 524 this.protocols = Util.immutableList(protocols); in setProtocols() [all …]
|
D | Address.java | 43 final List<Protocol> protocols; field in Address 54 List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) { in Address() argument 70 if (protocols == null) throw new IllegalArgumentException("protocols == null"); in Address() 71 this.protocols = Util.immutableList(protocols); in Address() 134 return protocols; in getProtocols() 178 && this.protocols.equals(that.protocols) in equals() 194 result = 31 * result + protocols.hashCode(); in hashCode()
|
/external/curl/docs/cmdline-opts/ |
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.
|
D | gen.pl | 82 sub protocols { subroutine 110 my $protocols; 139 $protocols=$1; 189 if($protocols) { 190 print protocols($standalone, $protocols); 243 my $protocols; 258 $protocols=$1; 272 $protolong{$long}=$protocols;
|
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.
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | Platform.java | 103 List<Protocol> protocols) { in configureTlsExtensions() argument 272 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() argument 281 Object[] parameters = { concatLengthPrefixed(protocols) }; in configureTlsExtensions() 368 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() argument 369 List<String> names = new ArrayList<>(protocols.size()); in configureTlsExtensions() 370 for (int i = 0, size = protocols.size(); i < size; i++) { in configureTlsExtensions() 371 Protocol protocol = protocols.get(i); in configureTlsExtensions() 414 private final List<String> protocols; field in Platform.JettyNegoProvider 420 public JettyNegoProvider(List<String> protocols) { in JettyNegoProvider() argument 421 this.protocols = protocols; in JettyNegoProvider() [all …]
|
/external/python/cpython2/Lib/test/ |
D | pickletester.py | 25 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 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: 947 for proto in protocols: 960 for proto in protocols: 973 for proto in protocols: [all …]
|
/external/python/cpython3/Lib/test/ |
D | pickletester.py | 28 protocols = range(pickle.HIGHEST_PROTOCOL + 1) variable 1192 for proto in protocols: 1212 for proto in protocols: 1237 for proto in protocols: 1247 for proto in protocols: 1259 for proto in protocols: 1270 for proto in protocols: 1325 for proto in protocols: 1338 for proto in protocols: 1351 for proto in protocols: [all …]
|
/external/wayland-protocols/chromium.org/ |
D | METADATA | 3 "wayland-protocols contains Wayland protocols that adds functionality not" 4 "available in the Wayland core protocol. Such protocols either adds" 7 "wayland-protocols." 12 … value: "https://chromium.googlesource.com/chromium/src.git/+/master/third_party/wayland-protocols"
|
/external/curl/tests/data/ |
D | test2004 | 37 for several protocols 62 for several protocols 64 for several protocols 66 for several protocols 68 for several protocols 70 for several protocols
|
/external/strace/ |
D | socketutils.c | 456 } protocols[] = { variable 470 i < ARRAY_SIZE(protocols); ++i) { in get_proto_by_name() 471 if (protocols[i].name && !strcmp(name, protocols[i].name)) in get_proto_by_name() 481 if ((unsigned int) proto >= ARRAY_SIZE(protocols) || in get_sockaddr_by_inode_uncached() 482 (proto != SOCK_PROTO_UNKNOWN && !protocols[proto].get)) in get_sockaddr_by_inode_uncached() 491 details = protocols[proto].get(tcp, fd, inode); in get_sockaddr_by_inode_uncached() 495 i < ARRAY_SIZE(protocols); ++i) { in get_sockaddr_by_inode_uncached() 496 if (!protocols[i].get) in get_sockaddr_by_inode_uncached() 498 details = protocols[i].get(tcp, fd, inode); in get_sockaddr_by_inode_uncached() 519 if ((unsigned int) proto < ARRAY_SIZE(protocols) && in print_sockaddr_by_inode_uncached() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | AddressTest.java | 32 private List<Protocol> protocols = Util.immutableList(Protocol.HTTP_1_1); field in AddressTest 38 authenticator, null, protocols, connectionSpecs, proxySelector); in equalsAndHashcode() 40 authenticator, null, protocols, connectionSpecs, proxySelector); in equalsAndHashcode() 47 authenticator, null, protocols, connectionSpecs, new RecordingProxySelector()); in differentProxySelectorsAreDifferent() 49 authenticator, null, protocols, connectionSpecs, new RecordingProxySelector()); in differentProxySelectorsAreDifferent()
|
/external/autotest/client/site_tests/kernel_ProtocolCheck/ |
D | control | 7 PURPOSE = "Check if the kernel supports the required network protocols." 8 CRITERIA = "Fails if any of the required protocols are not available." 17 Determines the protocols supported by a kernel by inspecting 18 /proc/net/protocols.
|
/external/okhttp/android/test/java/com/squareup/okhttp/internal/ |
D | PlatformTest.java | 58 List<Protocol> protocols = Arrays.asList(Protocol.HTTP_1_1, Protocol.SPDY_3); in enableTlsExtensionOptionalMethods() local 59 platform.configureTlsExtensions(arbitrarySocketImpl, "host", protocols); in enableTlsExtensionOptionalMethods() 61 platform.configureTlsExtensions(npnOnlySSLSocketImpl, "host", protocols); in enableTlsExtensionOptionalMethods() 64 platform.configureTlsExtensions(openSslSocket, "host", protocols); in enableTlsExtensionOptionalMethods() 67 assertArrayEquals(Platform.concatLengthPrefixed(protocols), openSslSocket.alpnProtocols); in enableTlsExtensionOptionalMethods() 187 public void setEnabledProtocols(String[] protocols) { in setEnabledProtocols() argument
|