Skip to content

Commit

Permalink
add streaming_unsigned_payload body value (#149)
Browse files Browse the repository at this point in the history
* add streaming_unsigned_payload body value
  • Loading branch information
ilevyor committed Jan 12, 2022
1 parent 48dad87 commit f29ffca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/aws/auth/signing_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ AWS_AUTH_API extern const struct aws_byte_cursor g_aws_signed_body_value_empty_s
*/
AWS_AUTH_API extern const struct aws_byte_cursor g_aws_signed_body_value_unsigned_payload;

/**
* 'STREAMING-UNSIGNED-PAYLOAD-TRAILER'
* For use with `aws_signing_config_aws.signed_body_value`.
*/
AWS_AUTH_API extern const struct aws_byte_cursor g_aws_signed_body_value_streaming_unsigned_payload_trailer;

/**
* 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD'
* For use with `aws_signing_config_aws.signed_body_value`.
Expand Down
3 changes: 3 additions & 0 deletions source/signing_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const struct aws_byte_cursor g_aws_signed_body_value_empty_sha256 =
const struct aws_byte_cursor g_aws_signed_body_value_unsigned_payload =
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("UNSIGNED-PAYLOAD");

const struct aws_byte_cursor g_aws_signed_body_value_streaming_unsigned_payload_trailer =
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("STREAMING-UNSIGNED-PAYLOAD-TRAILER");

const struct aws_byte_cursor g_aws_signed_body_value_streaming_aws4_hmac_sha256_payload =
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("STREAMING-AWS4-HMAC-SHA256-PAYLOAD");

Expand Down

0 comments on commit f29ffca

Please sign in to comment.