VS not support snprintf
This commit is contained in:
Zhi Guan
2017-05-14 10:12:25 +08:00
parent 8fd099c2c6
commit 4e1a23ccba
3 changed files with 11 additions and 0 deletions

View File

@@ -164,8 +164,11 @@ int SAF_GetEccPublicKey(
char key_id[1024];
int len;
/*
snprintf(key_id, sizeof(key_id), "%s.%s", (char *)pucContainerName,
SGD_GetKeyUsageName(uiKeyUsage));
*/
if (!(pkey = ENGINE_load_public_key(app->engine, key_id, NULL, NULL))) {
SAFerr(SAF_F_SAF_GETECCPUBLICKEY, ERR_R_ENGINE_LIB);
@@ -232,7 +235,9 @@ int SAF_EccSign(
EVP_PKEY_CTX *pctx = NULL;
size_t siglen;
/*
snprintf(key_id, sizeof(key_id), "%s.sign", (char *)pucContainerName);
*/
if (!(pkey = ENGINE_load_private_key(app->engine, key_id, NULL, NULL))
|| !(pctx = EVP_PKEY_CTX_new(pkey, app->engine))