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

How to use frob-* utilties #480

Open
pengwinsurf opened this issue Mar 30, 2023 · 2 comments
Open

How to use frob-* utilties #480

pengwinsurf opened this issue Mar 30, 2023 · 2 comments

Comments

@pengwinsurf
Copy link

Hi,

I am trying to figure out how to use the frob-* utilities in /trust.

For example with with frob-cert it needs a structure, field and filename.

Many other ones don't really have example usage such as frob-bc.

Is there any example of how to invoke this given the fixtures under /trust ?

@ueno
Copy link
Member

ueno commented Mar 31, 2023

I think those are mostly for internal testing purpose for maintainers and not supposed to be called by users. For example, frob-pow.c exercises the algorithm calculating 2^x closest to a given value, which is used for trust indexing, and having it as a separate executable makes it possible to benchmark it. I think it would be nice to clarify that somehow in the comment.

@pengwinsurf
Copy link
Author

@ueno Thank you for the prompt response.

The reason I specifically ask about those programs is that I am currently working on a project to extract API usage scenarios from code and those files have proven to be very useful showing how to use some libtasn1 APIs. I wanted to capture the values that would be passed in argv for those files to see the values that would be used in the API calls. I would really appreciate it if you could provide some documentation about how to run those files successfully, even if they not meant to be used by external users but just as examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants