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

@@ -204,7 +204,9 @@ int SAF_ImportEncedKey(
EVP_PKEY_CTX *pctx = NULL;
char key_id[1024];
/*
snprintf(key_id, sizeof(key_id), "%s.enc", hobj->pucContainerName);
*/
if (!(pkey = ENGINE_load_private_key(hobj->app->engine, key_id, NULL, NULL))
|| !(pctx = EVP_PKEY_CTX_new(pkey, hobj->app->engine))