Skip to content

Commit

Permalink
Update cs_base64_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Feb 22, 2021
1 parent 0aa1037 commit 0171936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mgos_homekit_adk_rpc_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ static void mgos_hap_setup_handler(
(const uint8_t*) code,
strlen(code));
salt = calloc(1, 24 + 1);
cs_base64_encode(setupInfo.salt, 16, salt);
cs_base64_encode(setupInfo.salt, 16, salt, NULL);
verifier = calloc(1, 512 + 1);
cs_base64_encode(setupInfo.verifier, 384, verifier);
cs_base64_encode(setupInfo.verifier, 384, verifier, NULL);
} else if (code == NULL && (salt != NULL && verifier != NULL)) {
if (!mgos_hap_setup_info_from_string(&setupInfo, salt, verifier)) {
mg_rpc_send_errorf(ri, 400, "invalid salt + verifier");
Expand Down

0 comments on commit 0171936

Please sign in to comment.