Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
246:1efe494c3d2b | 247:4de97f74d038 |
---|---|
11 | 11 |
12 #include <stdbool.h> | 12 #include <stdbool.h> |
13 | 13 |
14 /** @brief Access the Windows certificate store | 14 /** @brief Access the Windows certificate store |
15 * | 15 * |
16 * If the process is running with elevated rights this function | |
17 * will write into the system store. User store is written otherwise. | |
18 * | |
16 * @param [in] to_install strv of DER encoded certificates to be added. | 19 * @param [in] to_install strv of DER encoded certificates to be added. |
17 * @param [in] to_remove strv of DER encoded certificates to be remvoed. | 20 * @param [in] to_remove strv of DER encoded certificates to be remvoed. |
18 * @param [in] user_store set to True if the certificates should be installed | |
19 * only for the current user. O for system wide installation. | |
20 * @returns 0 on success an errorcode otherwise. | 21 * @returns 0 on success an errorcode otherwise. |
21 */ | 22 */ |
22 int write_stores_win (char **to_install, char **to_remove, | 23 int write_stores_win (char **to_install, char **to_remove); |
23 bool user_store); | |
24 | 24 |
25 /* The do_ functions are private helper functions and should not be used | 25 /* The do_ functions are private helper functions and should not be used |
26 * from other code. They are not static to allow it to use them directly | 26 * from other code. They are not static to allow it to use them directly |
27 * in unit tests */ | 27 * in unit tests */ |
28 void do_remove(HCERTSTORE hStore, char **to_remove); | 28 void do_remove(HCERTSTORE hStore, char **to_remove); |