From 4d1dc1bebe6db2b623010a29a00a185fe0d6cbed Mon Sep 17 00:00:00 2001 From: ericeberry Date: Thu, 22 Dec 2022 15:14:16 -0800 Subject: [PATCH] Issue 22: Fix test compile error for Realtek (#23) --- test/main/cpp/keyctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }