diff cinst/windowsstore.h @ 247:4de97f74d038

Check for process elevation and write into system store accordingly
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 31 Mar 2014 08:02:46 +0000
parents 57bef180d560
children 17e1c8f37d72
line wrap: on
line diff
--- a/cinst/windowsstore.h	Sat Mar 29 15:19:45 2014 +0100
+++ b/cinst/windowsstore.h	Mon Mar 31 08:02:46 2014 +0000
@@ -13,14 +13,14 @@
 
 /** @brief Access the Windows certificate store
  *
+ * If the process is running with elevated rights this function
+ * will write into the system store. User store is written otherwise.
+ *
  * @param [in] to_install strv of DER encoded certificates to be added.
  * @param [in] to_remove strv of DER encoded certificates to be remvoed.
- * @param [in] user_store set to True if the certificates should be installed
- *             only for the current user. O for system wide installation.
  * @returns 0 on success an errorcode otherwise.
  */
-int write_stores_win (char **to_install, char **to_remove,
-                      bool user_store);
+int write_stores_win (char **to_install, char **to_remove);
 
 /* The do_ functions are private helper functions and should not be used
  * from other code. They are not static to allow it to use them directly

http://wald.intevation.org/projects/trustbridge/