Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
Language: Cpp
BasedOnStyle: Google
BasedOnStyle: Google
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Empty
ColumnLimit: 100
IndentWidth: 4
ContinuationIndentWidth: 8
TypenameMacros: ['STACK_OF']
AlignEscapedNewlines: Left
AlignAfterOpenBracket: Align
---
Language: Java
BasedOnStyle: Google
ColumnLimit: 100
IndentWidth: 4
ContinuationIndentWidth: 8
AlignAfterOpenBracket: Align
JavaImportGroups:
- android
- androidx
Expand Down
3 changes: 0 additions & 3 deletions PREUPLOAD.cfg

This file was deleted.

6 changes: 6 additions & 0 deletions android/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
<issue id="Assert">
<ignore path="**/common/src/main/java/org/conscrypt/OpenSSLCipherChaCha20.java" />
</issue>

<!-- Workaround for "Unexpected failure during lint analysis". -->
<issue id="LintError">
<ignore regexp=".*module-info\.class.*"/>
</issue>

</lint>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright (C) 2025 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.conscrypt;

import org.conscrypt.metrics.CertificateTransparencyVerificationReason;

/**
* A default NetworkSecurityPolicy for unbundled Android.
*/
@Internal
public class ConscryptNetworkSecurityPolicy implements NetworkSecurityPolicy {
public static ConscryptNetworkSecurityPolicy getDefault() {
return new ConscryptNetworkSecurityPolicy();
}

@Override
public boolean isCertificateTransparencyVerificationRequired(String hostname) {
return false;
}

@Override
public CertificateTransparencyVerificationReason getCertificateTransparencyVerificationReason(
String hostname) {
return CertificateTransparencyVerificationReason.UNKNOWN;
}

@Override
public DomainEncryptionMode getDomainEncryptionMode(String hostname) {
return DomainEncryptionMode.UNKNOWN;
}
}
26 changes: 26 additions & 0 deletions android/src/main/java/org/conscrypt/ConscryptStatsLog.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.conscrypt;

/**
* Stub class for logging statistics events.
*/
public class ConscryptStatsLog {
public static final int TLS_HANDSHAKE_REPORTED = 0;

public static void write(int code, boolean arg1, int arg2, int arg3, int arg4) {}
}
Loading
Loading