Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: ASN.1 printings enhancements #23478

Merged
merged 7 commits into from
Oct 18, 2024
Merged

Conversation

0x8008135
Copy link
Contributor

  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description

This PR aims at enhancing the pFa command output with the following:

  • Fix length miscalculation

  • Add header on pFa output for better understanding
    image

  • Change the output format of some ASN.1 tags (hexstring), truncate to 100 characters if too long
    image

  • Tree view using pFat
    image

@0x8008135 0x8008135 changed the title ASN.1 PRINTINGS ENHANCEMENTS ASN.1 printings enhancements Oct 15, 2024
Copy link
Collaborator

@trufae trufae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the tests, rebase and we are all good to merge!

the new output looks nice indeed. thanks!

}

if (obj->tag == TAG_SEQUENCE || obj->tag == TAG_SET) {
r_strbuf_append (sb, "├─┬ ");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont use utf8 unless scr.utf8 is set pls

@trufae trufae added this to the 5.9.8 - gigglebytes milestone Oct 15, 2024
@trufae
Copy link
Collaborator

trufae commented Oct 17, 2024

ping

@0x8008135 0x8008135 changed the title ASN.1 printings enhancements WIP: ASN.1 printings enhancements Oct 17, 2024
@trufae trufae merged commit 17a4226 into radareorg:master Oct 18, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants