remove a function that is no longer used at all.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2888 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
807b4c7275
commit
347c5b0496
|
@ -50,35 +50,6 @@ FILE *spy_output = NULL;
|
||||||
#define CK_PKCS11_FUNCTION_INFO(name) \
|
#define CK_PKCS11_FUNCTION_INFO(name) \
|
||||||
pkcs11_spy->name = name;
|
pkcs11_spy->name = name;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
const char *get_reg_config(const char *spath)
|
|
||||||
{
|
|
||||||
static char path[PATH_MAX];
|
|
||||||
char *ptr = NULL;
|
|
||||||
int plen = sizeof(path);
|
|
||||||
long rc;
|
|
||||||
HKEY hkey;
|
|
||||||
|
|
||||||
rc = RegOpenKeyEx(HKEY_CURRENT_USER, spath, 0, KEY_QUERY_VALUE, &hkey);
|
|
||||||
if (rc == ERROR_SUCCESS) {
|
|
||||||
rc = RegQueryValueEx(hkey, "ConfigFile", NULL, NULL, (LPBYTE)path, &plen);
|
|
||||||
if ((rc == ERROR_SUCCESS) && (plen < PATH_MAX))
|
|
||||||
ptr = path;
|
|
||||||
RegCloseKey(hkey);
|
|
||||||
}
|
|
||||||
if (ptr == NULL) {
|
|
||||||
rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, spath, 0, KEY_QUERY_VALUE, &hkey);
|
|
||||||
if (rc == ERROR_SUCCESS) {
|
|
||||||
rc = RegQueryValueEx(hkey, "ConfigFile", NULL, NULL, (LPBYTE)path, &plen);
|
|
||||||
if ((rc == ERROR_SUCCESS) && (plen < PATH_MAX))
|
|
||||||
ptr = path;
|
|
||||||
RegCloseKey(hkey);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ptr;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Inits the spy. If successfull, po != NULL */
|
/* Inits the spy. If successfull, po != NULL */
|
||||||
static CK_RV init_spy(void)
|
static CK_RV init_spy(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue