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

Commit 7283acfd authored by Joseph Jang's avatar Joseph Jang Committed by Gerrit Code Review
Browse files

Merge "Add support testMode=false since KM RPC version 3"

parents a0f28846 5c15cfc8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -125,7 +125,8 @@ TEST_P(IdentityCredentialTests, verifyAttestationSuccessWithRemoteProvisioning)

    MacedPublicKey macedPublicKey;
    std::vector<uint8_t> attestationKey;
    result = rpc->generateEcdsaP256KeyPair(/*testMode=*/true, &macedPublicKey, &attestationKey);
    // Start by RPC version 3, we don't support testMode=true. So just verify testMode=false here.
    result = rpc->generateEcdsaP256KeyPair(/*testMode=*/false, &macedPublicKey, &attestationKey);
    ASSERT_TRUE(result.isOk()) << result.exceptionCode() << "; " << result.exceptionMessage();

    optional<vector<vector<uint8_t>>> remotelyProvisionedCertChain =
@@ -176,7 +177,8 @@ TEST_P(IdentityCredentialTests, verifyRemotelyProvisionedKeyMayOnlyBeSetOnce) {

    MacedPublicKey macedPublicKey;
    std::vector<uint8_t> attestationKey;
    result = rpc->generateEcdsaP256KeyPair(/*testMode=*/true, &macedPublicKey, &attestationKey);
    // Start by RPC version 3, we don't support testMode=true. So just verify testMode=false here.
    result = rpc->generateEcdsaP256KeyPair(/*testMode=*/false, &macedPublicKey, &attestationKey);
    ASSERT_TRUE(result.isOk()) << result.exceptionCode() << "; " << result.exceptionMessage();

    optional<vector<vector<uint8_t>>> remotelyProvisionedCertChain =