aheinecke@137: #ifdef WIN32 aheinecke@137: #ifndef WINDOWSSTORE_H aheinecke@137: #define WINDOWSSTORE_H aheinecke@137: andre@219: #ifdef __cplusplus andre@219: extern "C" { andre@219: #endif andre@219: aheinecke@137: #include aheinecke@137: #include aheinecke@161: aheinecke@161: #include aheinecke@161: aheinecke@161: /** @brief Access the Windows certificate store aheinecke@137: * aheinecke@247: * If the process is running with elevated rights this function aheinecke@247: * will write into the system store. User store is written otherwise. aheinecke@247: * aheinecke@161: * @param [in] to_install strv of DER encoded certificates to be added. aheinecke@161: * @param [in] to_remove strv of DER encoded certificates to be remvoed. aheinecke@137: * @returns 0 on success an errorcode otherwise. aheinecke@137: */ aheinecke@247: int write_stores_win (char **to_install, char **to_remove); aheinecke@137: andre@219: /* The do_ functions are private helper functions and should not be used andre@219: * from other code. They are not static to allow it to use them directly andre@219: * in unit tests */ andre@219: void do_remove(HCERTSTORE hStore, char **to_remove); andre@219: void do_install(HCERTSTORE hStore, char **to_install); andre@219: andre@219: #ifdef __cplusplus andre@219: } andre@219: #endif andre@219: aheinecke@137: #endif // WINDOWSSTORE_H aheinecke@137: #endif // WIN32