Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions faith-server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ chain.pem
pkey.pem
nob
build
compile_commands.json
.cache/
272 changes: 0 additions & 272 deletions faith-server/compile_commands.json

This file was deleted.

28 changes: 14 additions & 14 deletions faith-server/src/auth/device_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ device_link_handle_device_response(server_state_t *s, client_conn_t *cl,
}

if (!cl->authorized) {
char auth_id_hex[33];
char device_id_hex[33];
char auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(faith_id128_to_hex(cl->ident.auth_id.bytes, auth_id_hex));
_FH_CHECK_RETURN(
faith_id128_to_hex(cl->ident.device_id.bytes, device_id_hex));
Expand All @@ -99,8 +99,8 @@ device_link_handle_device_response(server_state_t *s, client_conn_t *cl,
}

if (!req_cl || req_cl->closing) {
char req_auth_id_hex[33];
char req_device_id_hex[33];
char req_auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char req_device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(faith_id128_to_hex(req->auth_id.bytes, req_auth_id_hex));
_FH_CHECK_RETURN(
faith_id128_to_hex(req->device_id_new.bytes, req_device_id_hex));
Expand Down Expand Up @@ -299,8 +299,8 @@ defer: {
s, req_cl, FAITH_DISCONNECT_AUTH_FAILED, FAITH_CLIENT_RECONNECT_FORBIDDEN,
0, 0, buf));

char auth_id_hex[33];
char device_id_hex[33];
char auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(faith_id128_to_hex(client_id.bytes, auth_id_hex));
_FH_CHECK_RETURN(faith_id128_to_hex(device_id_new.bytes, device_id_hex));

Expand Down Expand Up @@ -332,8 +332,8 @@ device_link_new_device(server_state_t *s, client_conn_t *cl,
return FAITH_ERR_BAD_ENVELOPE;

if (g_verbose_logging) {
char cl_auth_id_hex[33];
char new_device_id_hex[33];
char cl_auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char new_device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(
faith_id128_to_hex(params->sender_auth_id.bytes, cl_auth_id_hex));
_FH_CHECK_RETURN(
Expand Down Expand Up @@ -366,10 +366,10 @@ device_link_new_device(server_state_t *s, client_conn_t *cl,
&params->device_id, &req));

if (_fh_rc != FAITH_OK || !req) {
char sender_auth_id_hex[33];
char sender_auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(faith_id128_to_hex(params->sender_auth_id.bytes,
sender_auth_id_hex));
char device_id_hex[33];
char device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(
faith_id128_to_hex(params->device_id.bytes, device_id_hex));
nob_log(ERROR,
Expand Down Expand Up @@ -448,8 +448,8 @@ faith_status_code_t device_link_queue_request(
return FAITH_ERR_INVALID;

if (!recipient_cl->authorized) {
char auth_id_hex[33];
char device_id_hex[33];
char auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(
faith_id128_to_hex(recipient_cl->ident.auth_id.bytes, auth_id_hex));
_FH_CHECK_RETURN(
Expand All @@ -464,8 +464,8 @@ faith_status_code_t device_link_queue_request(
}

if (recipient_cl->pending_device_link_req != NULL) {
char auth_id_hex[33];
char device_id_hex[33];
char auth_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
char device_id_hex[FAITH_AUTH_ID_SIZE * 2 + 1];
_FH_CHECK_RETURN(
faith_id128_to_hex(recipient_cl->ident.auth_id.bytes, auth_id_hex));
_FH_CHECK_RETURN(
Expand Down
Loading
Loading