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

Commit 9427c285 authored by Grace Kloba's avatar Grace Kloba
Browse files

Set organizations to be null for generateKeyPair to use the default.

parent ecfb9f91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -192,7 +192,8 @@ final class JWebCoreJavaBridge extends Handler {
    }

    private String getSignedPublicKey(int index, String challenge, String url) {
        return Keystore.getInstance().generateKeyPair(index, challenge, url);
        // generateKeyPair expects organizations which we don't have. Ignore url.
        return Keystore.getInstance().generateKeyPair(index, challenge, null);
    }

    private native void nativeConstructor();