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

Commit 5c15cfc8 authored by Joseph Jang's avatar Joseph Jang
Browse files

Add support testMode=false since KM RPC version 3

Bug: 281661155
Change-Id: Ie727c327c10c6c48d72f9dc9689560f75e3d0131
parent ebcdcdbc
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 =