/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | ConnectionSpec.java | 68 .tlsVersions(TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0) 74 .tlsVersions(TlsVersion.TLS_1_0) 84 private final String[] tlsVersions; field in ConnectionSpec 89 this.tlsVersions = builder.tlsVersions; in ConnectionSpec() 115 public List<TlsVersion> tlsVersions() { in tlsVersions() method in ConnectionSpec 116 if (tlsVersions == null) return null; in tlsVersions() 118 TlsVersion[] result = new TlsVersion[tlsVersions.length]; in tlsVersions() 119 for (int i = 0; i < tlsVersions.length; i++) { in tlsVersions() 120 result[i] = TlsVersion.forJavaName(tlsVersions[i]); in tlsVersions() 133 if (specToApply.tlsVersions != null) { in apply() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | ConnectionSpec.java | 66 .tlsVersions(TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0) 72 .tlsVersions(TlsVersion.TLS_1_0) 82 private final String[] tlsVersions; field in ConnectionSpec 87 this.tlsVersions = builder.tlsVersions; in ConnectionSpec() 113 public List<TlsVersion> tlsVersions() { in tlsVersions() method in ConnectionSpec 114 if (tlsVersions == null) return null; in tlsVersions() 116 TlsVersion[] result = new TlsVersion[tlsVersions.length]; in tlsVersions() 117 for (int i = 0; i < tlsVersions.length; i++) { in tlsVersions() 118 result[i] = TlsVersion.forJavaName(tlsVersions[i]); in tlsVersions() 131 if (specToApply.tlsVersions != null) { in apply() [all …]
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
D | ConnectionSpec.java | 60 .tlsVersions(TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0) 66 .tlsVersions(TlsVersion.TLS_1_0) 82 private final String[] tlsVersions; field in ConnectionSpec 89 this.tlsVersions = builder.tlsVersions; in ConnectionSpec() 112 public List<TlsVersion> tlsVersions() { in tlsVersions() method in ConnectionSpec 113 TlsVersion[] result = new TlsVersion[tlsVersions.length]; in tlsVersions() 114 for (int i = 0; i < tlsVersions.length; i++) { in tlsVersions() 115 result[i] = TlsVersion.forJavaName(tlsVersions[i]); in tlsVersions() 128 sslSocket.setEnabledProtocols(specToApply.tlsVersions); in apply() 170 String[] protocolsToEnable = Util.intersect(String.class, tlsVersions, protocolsToSelectFrom); in supportedSpec() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionSpecTest.java | 36 .tlsVersions(new TlsVersion[0]) in noTlsVersions() 63 .tlsVersions(TlsVersion.TLS_1_2) in tlsBuilder_explicitCiphers() 67 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_explicitCiphers() 73 .tlsVersions(TlsVersion.TLS_1_2) in tlsBuilder_defaultCiphers() 77 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_defaultCiphers() 83 .tlsVersions(TlsVersion.TLS_1_2) in tls_defaultCiphers_noFallbackIndicator() 113 .tlsVersions(TlsVersion.TLS_1_2) in tls_defaultCiphers_withFallbackIndicator() 147 .tlsVersions(TlsVersion.TLS_1_2) in tls_explicitCiphers() 179 .tlsVersions("TLS9k") in tls_stringCiphersAndVersions() 186 .tlsVersions(TlsVersion.TLS_1_2) in tls_missingRequiredCipher() [all …]
|
D | URLConnectionTest.java | 651 Set<TlsVersion> tlsVersions = in sslFallbackNotUsedWhenRecycledConnectionFails() local 655 assertTrue(tlsVersions.contains(request1.getTlsVersion())); in sslFallbackNotUsedWhenRecycledConnectionFails() 658 assertTrue(tlsVersions.contains(request2.getTlsVersion())); in sslFallbackNotUsedWhenRecycledConnectionFails()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | ConnectionSpecSelectorTest.java | 88 .tlsVersions(TlsVersion.SSL_3_0) in someFallbacksSupported() 122 private SSLSocket createSocketWithEnabledProtocols(TlsVersion... tlsVersions) throws IOException { in createSocketWithEnabledProtocols() argument 124 socket.setEnabledProtocols(javaNames(tlsVersions)); in createSocketWithEnabledProtocols() 134 private static String[] javaNames(TlsVersion... tlsVersions) { in javaNames() argument 135 String[] protocols = new String[tlsVersions.length]; in javaNames() 136 for (int i = 0; i < tlsVersions.length; i++) { in javaNames() 137 protocols[i] = tlsVersions[i].javaName(); in javaNames()
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | Utils.java | 70 List<com.squareup.okhttp.TlsVersion> tlsVersionList = spec.tlsVersions(); in convertSpec() 71 String[] tlsVersions = new String[tlsVersionList.size()]; in convertSpec() local 72 for (int i = 0; i < tlsVersions.length; i++) { in convertSpec() 73 tlsVersions[i] = tlsVersionList.get(i).javaName(); in convertSpec() 84 .tlsVersions(tlsVersions) in convertSpec()
|
D | OkHttpChannelBuilder.java | 103 .tlsVersions(com.squareup.okhttp.TlsVersion.TLS_1_2) 120 .tlsVersions(TlsVersion.TLS_1_2)
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | UtilsTest.java | 56 List<com.squareup.okhttp.TlsVersion> squareTlsVersions = squareSpec.tlsVersions(); in convertSpecKeepsAllData() 57 List<TlsVersion> tlsVersions = spec.tlsVersions(); in convertSpecKeepsAllData() local 65 assertEquals(versionsSize, tlsVersions.size()); in convertSpecKeepsAllData() 67 assertEquals(TlsVersion.forJavaName(squareTlsVersions.get(i).javaName()), tlsVersions.get(i)); in convertSpecKeepsAllData()
|
/external/boringssl/src/ssl/test/runner/ |
D | runner.go | 1199 for _, ver := range tlsVersions { 1524 var tlsVersions = []tlsVersion{ var 1554 return tlsVersions 1558 for _, vers := range tlsVersions { 3455 for _, ver := range tlsVersions { 3906 for _, ver := range tlsVersions { 4189 for _, ver := range tlsVersions { 4861 for _, vers := range tlsVersions { 5006 for _, vers := range tlsVersions { 5415 for _, ver := range tlsVersions { [all …]
|