diff --git a/include/libgourou_common.h b/include/libgourou_common.h index 72865df..dbfedf6 100644 --- a/include/libgourou_common.h +++ b/include/libgourou_common.h @@ -110,6 +110,7 @@ namespace gourou CLIENT_ZIP_ERROR, CLIENT_GENERIC_EXCEPTION, CLIENT_NETWORK_ERROR, + CLIENT_INVALID_PKCS8, }; enum DRM_REMOVAL_ERROR { diff --git a/utils/drmprocessorclientimpl.cpp b/utils/drmprocessorclientimpl.cpp index 701f8b5..c412484 100644 --- a/utils/drmprocessorclientimpl.cpp +++ b/utils/drmprocessorclientimpl.cpp @@ -184,7 +184,7 @@ void DRMProcessorClientImpl::RSAPrivateDecrypt(const unsigned char* RSAKey, unsi PKCS8_PRIV_KEY_INFO* p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(mem, NULL); if (!p8inf) - EXCEPTION(gourou::CLIENT_INVALID_PKCS12, ERR_error_string(ERR_get_error(), NULL)); + EXCEPTION(gourou::CLIENT_INVALID_PKCS8, ERR_error_string(ERR_get_error(), NULL)); EVP_PKEY* pkey = EVP_PKCS82PKEY(p8inf); RSA * rsa;