Skip to content
Snippets Groups Projects
Commit 66e0539c authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

resolve discussions

parent b0ba9a55
No related branches found
No related tags found
No related merge requests found
/**
* Callback function that deletes an SSH key from the list of keys authorised
* for access to the initrd. The line will be left empty, because that keeps
* the ids if SSH keys in tact for ssh_keys_get
*
* Example output:
* {"ssh-keys":{"1":"ssh-rsa AAAAB3... example@example.com",
* "2":"ssh-rsa AAAAB3...","5":"command=\"/usr/bin/cryptops-client\" ssh-rsa
* AAAAB3... cryptops-test@greenhost"}}
*
* The indices correspond to line numbers of the authorized_keys file.
* Missing indices (like 3 and 4 in the example) arise from empty lines in the
* file; those are creted when keys are deleted.
* the ids of SSH keys intact for ssh_keys_get
*
* @param[in] request incoming HTTP request
* @param[out] response HTTP response to the request
......
/**
* Callback function that deletes an SSH key from the list of keys authorised
* for access to the initrd. The line will be left empty, because that keeps
* the ids if SSH keys in tact for ssh_keys_get
*
* Example output:
* {"ssh-keys":{"1":"ssh-rsa AAAAB3... example@example.com",
* "2":"ssh-rsa AAAAB3...","5":"command=\"/usr/bin/cryptops-client\" ssh-rsa
* AAAAB3... cryptops-test@greenhost"}}
*
* The indices correspond to line numbers of the authorized_keys file.
* Missing indices (like 3 and 4 in the example) arise from empty lines in the
* file; those are creted when keys are deleted.
* Callback function that updates an SSH key in the list of keys authorised
* for access to the initrd. Needs an ID provided in the URL and a new SSH key
* provided in the request body.
*
* @param[in] request incoming HTTP request
* @param[out] response HTTP response to the request
......
......@@ -251,8 +251,6 @@ int replace_ssh_key(int id, const char * ssh_key)
return -2;
}
// Initialise with any non-EOF character
char ch;
int line_number = 1;
......
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