Skip to content
Snippets Groups Projects
Commit a8440aab authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge remote-tracking branch 'origin/master' into 5-add-luks-key-endpoint

parents aed4d178 acb630be
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
* @param[in] user_data extra data to pass between handler and main thread
* @return internal status code
*/
int callback_encryption_add(const struct _u_request * request,
int callback_encryption_init(const struct _u_request * request,
struct _u_response * response, void * user_data)
{
bool * reboot = (bool *)user_data;
......
......@@ -6,7 +6,7 @@
#include <auxiliary.c>
#include <encryption_functions.c>
#include <api/default.c>
#include <api/encryption_add.c>
#include <api/encryption_init.c>
#include <api/encryption_unlock.c>
#include <api/encryption_keys_put.c>
#include <api/ssh_keys_get.c>
......@@ -38,8 +38,8 @@ int main(int argc, char ** argv)
// Add api endpoints.
bool reboot = false;
ulfius_add_endpoint_by_val(&instance, "POST", PREFIX,
"/encryption/add",
0, &callback_encryption_add, &reboot);
"/encryption/init",
0, &callback_encryption_init, &reboot);
ulfius_add_endpoint_by_val(&instance, "POST", PREFIX,
"/encryption/unlock",
0, &callback_encryption_unlock, NULL);
......@@ -99,7 +99,7 @@ int main(int argc, char ** argv)
ulfius_stop_framework(&instance);
ulfius_clean_instance(&instance);
// Check if the encryption/add said that we should reboot.
// Check if the encryption/init handler said that we should reboot.
if (reboot)
{
printf("rebooting...");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment