comparison cinst/windowsstore.h @ 161:a4b1c77f3e6a

Change install_certificates_win to generic write_stores_win This function will also handle the removal to avoid redundancies in store handling
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 25 Mar 2014 10:08:31 +0000
parents 4904fe01055d
children 57bef180d560
comparison
equal deleted inserted replaced
160:bf4bfd8843bd 161:a4b1c77f3e6a
2 #ifndef WINDOWSSTORE_H 2 #ifndef WINDOWSSTORE_H
3 #define WINDOWSSTORE_H 3 #define WINDOWSSTORE_H
4 4
5 #include <windows.h> 5 #include <windows.h>
6 #include <wincrypt.h> 6 #include <wincrypt.h>
7 /** @brief Install certificates into Windows store 7
8 #include <stdbool.h>
9
10 /** @brief Access the Windows certificate store
8 * 11 *
9 * @param [in] to_install NULL terminated array of base64 encoded certificates. 12 * @param [in] to_install strv of DER encoded certificates to be added.
13 * @param [in] to_remove strv of DER encoded certificates to be remvoed.
10 * @param [in] user_store set to True if the certificates should be installed 14 * @param [in] user_store set to True if the certificates should be installed
11 * only for the current user. O for system wide installation. 15 * only for the current user. O for system wide installation.
12 * @returns 0 on success an errorcode otherwise. 16 * @returns 0 on success an errorcode otherwise.
13 */ 17 */
14 int install_certificates_win(const char **to_install, int user_store) 18 int write_stores_win (char **to_install, char **to_remove,
19 bool user_store);
15 20
16 #endif // WINDOWSSTORE_H 21 #endif // WINDOWSSTORE_H
17 #endif // WIN32 22 #endif // WIN32

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