Mercurial > trustbridge
diff cinst/windowsstore.c @ 624:736e95c63b86
Log access to windows stores
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 20 Jun 2014 12:17:47 +0200 |
parents | 3cf72c5282e8 |
children | f595fcbe3e76 |
line wrap: on
line diff
--- a/cinst/windowsstore.c Fri Jun 20 12:17:32 2014 +0200 +++ b/cinst/windowsstore.c Fri Jun 20 12:17:47 2014 +0200 @@ -58,6 +58,7 @@ { PCCERT_CONTEXT pCert = NULL; unsigned int i = 0; + bool elevated = is_elevated(); if (!to_remove) { @@ -108,6 +109,8 @@ free (error); continue; } + log_certificate (elevated ? "Local Machine" : "Current User", + to_remove[i], false); } return; } @@ -117,6 +120,7 @@ { int i = 0, ret = -1; + bool elevated = is_elevated(); if (!to_install) { @@ -164,6 +168,8 @@ free (error); } } + log_certificate (elevated ? "Local Machine" : "Current User", + to_install[i], true); } return; }