Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eae6027 authored by Chad Brubaker's avatar Chad Brubaker Committed by Narayan Kamath
Browse files

Don't use IntegralToString

Fix master build

(cherry picked from commit 7845e44c)

Change-Id: Ic99a5e868b5d42e7bf72ef5388e30f070b6655d8
parent 5a3b4240
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import java.security.cert.X509Certificate;
import java.util.Set;
import libcore.io.IoUtils;

import com.android.org.conscrypt.Hex;
import com.android.org.conscrypt.NativeCrypto;

import javax.security.auth.x500.X500Principal;
@@ -136,7 +137,7 @@ abstract class DirectoryCertificateSource implements CertificateSource {

    private String getHash(X500Principal name) {
        int hash = NativeCrypto.X509_NAME_hash_old(name);
        return IntegralToString.intToHexString(hash, false, 8);
        return Hex.intToHexString(hash, 8);
    }

    private X509Certificate readCertificate(String file) {