[libfko] added context initialized check to fko_decrypt_spa_data()

This commit is contained in:
Michael Rash 2013-05-12 20:49:00 -04:00
parent 6d0f970b34
commit 7b3c854a02

View File

@ -542,6 +542,9 @@ fko_decrypt_spa_data(fko_ctx_t ctx, const char * const dec_key, const int key_le
{
int enc_type, res;
if(!CTX_INITIALIZED(ctx))
return(FKO_ERROR_CTX_NOT_INITIALIZED);
/* Get the (assumed) type of encryption used. This will also provide
* some data validation.
*/