diff --git a/test/main/cpp/keyctrl.cpp b/test/main/cpp/keyctrl.cpp index d04e4a9..8ae1eb4 100644 --- a/test/main/cpp/keyctrl.cpp +++ b/test/main/cpp/keyctrl.cpp @@ -463,7 +463,7 @@ Sec_Result testKeyCtrlProvision32bit2038(int version, const char* alg) { } #else if (SecKey_Provision(ctx.proc(), SEC_OBJECTID_USER_BASE, SEC_STORAGELOC_RAM, SEC_KEYCONTAINER_JTYPE, - reinterpret_cast(jtype.data()), jtype.size()) == SEC_RESULT_SUCCESS) { + reinterpret_cast(&jtype[0]), jtype.size()) == SEC_RESULT_SUCCESS) { SEC_LOG_ERROR("Expecting SecKey_Provision to fail on jtype with date '%s'", notOnOrAfter); return SEC_RESULT_FAILURE; }