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

Commit b35b2195 authored by Paul Stewart's avatar Paul Stewart Committed by android-build-merger
Browse files

Account for null client certificate am: 1ca57a1d am: 4ad314b4

am: 25eff773

Change-Id: I2bd868e534ca1a5960ac9855bd40a91f705b9772
parents 9c9d4f6f 25eff773
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -752,8 +752,11 @@ public class WifiEnterpriseConfig implements Parcelable {
     * @throws IllegalArgumentException for an invalid key or certificate.
     */
    public void setClientKeyEntry(PrivateKey privateKey, X509Certificate clientCertificate) {
        setClientKeyEntryWithCertificateChain(privateKey,
                new X509Certificate[] {clientCertificate});
        X509Certificate[] clientCertificates = null;
        if (clientCertificate != null) {
            clientCertificates = new X509Certificate[] {clientCertificate};
        }
        setClientKeyEntryWithCertificateChain(privateKey, clientCertificates);
    }

    /**