npa/sc-hsm: don't call EAC_cleanup()

In Minidriver, when the DLL is called in multiple threads, this can
lead to a deinitialization of OpenSSL's OIDs in one thread making them
unavailable from other threads of the same process. As result, CVCs
cannot be veriefied anymore during chip authentication.
This commit is contained in:
Frank Morgner 2018-07-27 11:54:10 +02:00
parent 0f9c7d126a
commit da40c61d13
2 changed files with 0 additions and 10 deletions

View File

@ -356,9 +356,6 @@ static int npa_finish(sc_card_t * card)
sc_sm_stop(card);
npa_drv_data_free(card->drv_data);
card->drv_data = NULL;
#ifdef ENABLE_OPENPACE
EAC_cleanup();
#endif
return SC_SUCCESS;
}
@ -399,9 +396,6 @@ static int npa_init(sc_card_t * card)
if (r != SC_SUCCESS)
goto err;
#ifdef ENABLE_OPENPACE
EAC_init();
#endif
card->drv_data = npa_drv_data_create();
if (!card->drv_data) {
npa_finish(card);

View File

@ -1709,10 +1709,6 @@ static int sc_hsm_finish(sc_card_t * card)
free(priv->EF_C_DevAut);
free(priv);
#ifdef ENABLE_OPENPACE
EAC_cleanup();
#endif
return SC_SUCCESS;
}