_scoped_x509_store_ctx(pstStoreCtx, X509_STORE_CTX_free);
//init
- X509_STORE_CTX_init(pstStoreCtx, pstStore, pstX509, untrustedCerts);
+ if(!X509_STORE_CTX_init(pstStoreCtx, pstStore, pstX509, untrustedCerts)) {
+ DRM_TAPPS_EXCEPTION("509_STORE_CTX_init error!");
+ return -1;
+ }
//Set Flag
X509_STORE_CTX_set_flags(pstStoreCtx, X509_V_FLAG_CB_ISSUER_CHECK);