Skip to content

Commit

Permalink
Upstream AOSP changes (#1207)
Browse files Browse the repository at this point in the history
* Turn conscrypt-platform CT verification into a no-op

Upstreams https://r.android.com/2986189

Test: m conscrypt

* Remove NetworkSecurityPolicy references

Upstreams https://r.android.com/3048194

Test: build

---------

Co-authored-by: Sandro Montanari <sandrom@google.com>
  • Loading branch information
tweksteen and ichfarbstift authored May 8, 2024
1 parent a5a0aa0 commit 655ad50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 101 deletions.
98 changes: 0 additions & 98 deletions libcore-stub/src/main/java/libcore/net/NetworkSecurityPolicy.java

This file was deleted.

4 changes: 1 addition & 3 deletions platform/src/main/java/org/conscrypt/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
import javax.net.ssl.StandardConstants;
import javax.net.ssl.X509ExtendedTrustManager;
import javax.net.ssl.X509TrustManager;
import libcore.net.NetworkSecurityPolicy;
import org.conscrypt.ct.CTLogStore;
import org.conscrypt.ct.CTLogStoreImpl;
import org.conscrypt.ct.CTPolicy;
Expand Down Expand Up @@ -462,8 +461,7 @@ static boolean supportsX509ExtendedTrustManager() {
}

static boolean isCTVerificationRequired(String hostname) {
return NetworkSecurityPolicy.getInstance().isCertificateTransparencyVerificationRequired(
hostname);
return false;
}

static boolean supportsConscryptCertStore() {
Expand Down

0 comments on commit 655ad50

Please sign in to comment.