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

Custom TCTI #533

Open
stefanodevenuto opened this issue Jul 31, 2024 · 3 comments
Open

Custom TCTI #533

stefanodevenuto opened this issue Jul 31, 2024 · 3 comments

Comments

@stefanodevenuto
Copy link

Hi everyone!
I was wondering if in the library there's a way to indicate a custom TCTI to be used, like with the -T option using tpm2_tools, and, if not, if it would require major changes (the tools leverage dlopen() to load the .so provided)

Thanks a lot!

@Superhepper
Copy link
Collaborator

No, the TCTI options that currently exist are explicitly defined so there is no option that would allow for that currently I think.

@Superhepper
Copy link
Collaborator

I am not sure how the tpm2-tools do that but it would probably not be a major issue to implement the functionality but rather a bit of a hassle to add some kind of CI pipeline to test it.

@wiktor-k
Copy link
Collaborator

wiktor-k commented Sep 23, 2024

Hm... can't TctiNameConf::from_str be used for that?

I see it's used as part of TctiNameConf::from_environment_variable... or maybe I'm mixing it up with something else? 🤔

Edit: Just re-read the source code and of course the from_str fails for unknown TCTIs 🤦‍♂️ If there's some concrete use-case I think it would be a good idea to add a "catch-all" variant for free-form strings 🤔

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

No branches or pull requests

3 participants