File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/electronic-ids/pkcs11 Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,15 @@ inline fs::path lithuanianPKCS11ModulePath()
7272inline fs::path croatianPkcs11ModulePath ()
7373{
7474#ifdef _WIN32
75- return programFilesPath () / L" AKD/Certilia Middleware/pkcs11/AkdEidPkcs11_64.dll" ;
75+ fs::path certiliaPath = programFilesPath () / L" AKD/Certilia Middleware/pkcs11/AkdEidPkcs11_64.dll" ;
76+ fs::path eidPath = programFilesPath () / L" AKD/eID Middleware/pkcs11/AkdEidPkcs11_64.dll" ;
77+ return fs::exists (certiliaPath) ? certiliaPath : eidPath;
7678#elif defined __APPLE__
77- return " /Library/AKD/Certilia Middleware /pkcs11/libEidPkcs11.so " ; // NB! Not tested.
79+ return " /usr/local/lib /pkcs11/libEidPkcs11.dylib " ; // NB! Not tested.
7880#else // Linux
79- return " /usr/lib/akd/certiliamiddleware/pkcs11/libEidPkcs11.so" ;
81+ fs::path certiliaPath = " /usr/lib/akd/certiliamiddleware/pkcs11/libEidPkcs11.so" ;
82+ fs::path eidPath = " /usr/lib/akd/eidmiddleware/pkcs11/libEidPkcs11.so" ;
83+ return fs::exists (certiliaPath) ? certiliaPath : eidPath;
8084#endif
8185}
8286
You can’t perform that action at this time.
0 commit comments