Skip to content

Commit

Permalink
passkey: rename function
Browse files Browse the repository at this point in the history
Rename `sss_passkey_prefix_json_data()` to
`sss_passkey_message_from_reply_json()`.

Signed-off-by: Iker Pedrosa <[email protected]>

Reviewed-by: Justin Stephenson <[email protected]>
Reviewed-by: Pavel Březina <[email protected]>
Reviewed-by: Sumit Bose <[email protected]>

Reviewed-by: Alexey Tikhonov <[email protected]>
Reviewed-by: Justin Stephenson <[email protected]>
  • Loading branch information
ikerexxe authored and alexey-tikhonov committed Aug 14, 2023
1 parent f79ce53 commit aba98a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/krb5_plugin/passkey/passkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ void
sss_passkey_message_free(struct sss_passkey_message *message);

struct sss_passkey_message *
sss_passkey_prefix_json_data(enum sss_passkey_phase phase,
const char *state,
const char *json_str);
sss_passkey_message_from_reply_json(enum sss_passkey_phase phase,
const char *state,
const char *json_str);

char *
sss_passkey_message_encode(const struct sss_passkey_message *data);
Expand Down
6 changes: 3 additions & 3 deletions src/krb5_plugin/passkey/passkey_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ sss_passkey_message_to_json(const struct sss_passkey_message *message)
}

struct sss_passkey_message *
sss_passkey_prefix_json_data(enum sss_passkey_phase phase,
const char *state,
const char *json_str)
sss_passkey_message_from_reply_json(enum sss_passkey_phase phase,
const char *state,
const char *json_str)
{
json_error_t jret;
json_t *jroot;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/krb5/krb5_child.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ static krb5_error_code answer_passkey(krb5_context kctx,

phase = SSS_PASSKEY_PHASE_REPLY;
state = SSSD_PASSKEY_REPLY_STATE;
reply_msg = sss_passkey_prefix_json_data(phase, state, reply);
reply_msg = sss_passkey_message_from_reply_json(phase, state, reply);
if (reply_msg == NULL) {
DEBUG(SSSDBG_OP_FAILURE, "Unable to prefix passkey message\n");
kerr = EINVAL;
Expand Down

0 comments on commit aba98a4

Please sign in to comment.