Skip to content

Commit

Permalink
fix sub vol 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Oct 9, 2023
1 parent 4390bab commit d3cd6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/pbcc_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ const char* pbcc_base64_encode(pubnub_bymebl_t buffer) {
}

pubnub_bymebl_t pbcc_base64_decode(const char* buffer) {
PUBNUB_LOG_ERROR("pbcc_base64_decode: buffer = %s\n", buffer);
return pbbase64_decode_alloc_std_str(buffer);
}

Expand Down
4 changes: 2 additions & 2 deletions core/pubnub_crypto_unit_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Ensure(crypto_api, client_should_use_cryptors_for_subscribe) {
expect_outgoing_with_url_no_params_on(pbp, "/subscribe/sub_key/health/0/"
"1516014978925123457");
incoming("HTTP/1.1 200\r\nContent-Length: "
"50\r\n\r\n[[UE5FRAF4eHh4BG1ldGF4eHh4],"
"52\r\n\r\n[[\"UE5FRAF4eHh4BG1ldGF4eHh4\"],"
"\"1516714978925123457\"]",
NULL);
expect(pbntf_lost_socket, when(pb, is_equal_to(pbp)));
Expand All @@ -156,7 +156,7 @@ Ensure(crypto_api, client_should_use_cryptors_for_history) {
expect_outgoing_with_url_no_params_on(pbp, "/v2/history/sub-key/sub_key/channel/"
"ch");
incoming("HTTP/1.1 200\r\nContent-Length: "
"26\r\n\r\n[UE5FRAF4eHh4BG1ldGF4eHh4]",
"28\r\n\r\n[\"UE5FRAF4eHh4BG1ldGF4eHh4\"]",
NULL);
expect(pbntf_lost_socket, when(pb, is_equal_to(pbp)));
expect(pbntf_trans_outcome, when(pb, is_equal_to(pbp)));
Expand Down

0 comments on commit d3cd6bd

Please sign in to comment.