Skip to content

Commit

Permalink
test ending file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 13, 2023
1 parent 350a478 commit e25774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pem.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int s_extract_header_type_cur(struct aws_byte_cursor cur, struct aws_byte_cursor
struct aws_byte_cursor type_cur = aws_byte_cursor_advance(&cur, cur.len - s_delim_cur.len);

if (!aws_byte_cursor_eq(&cur, &s_delim_cur)) {
AWS_LOGF_ERROR(AWS_LS_IO_PEM, "Invalid PEM buffer: invalid end token");
AWS_LOGF_ERROR(AWS_LS_IO_PEM, "Invalid PEM buffer: invalid end token :"PRInSTR, AWS_BYTE_CURSOR_PRI(cur));
return aws_raise_error(AWS_ERROR_PEM_MALFORMED);
}

Expand Down

0 comments on commit e25774a

Please sign in to comment.