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:
parent
0f9c7d126a
commit
da40c61d13
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue