Johannes Holland

Results 34 comments of Johannes Holland

@JuergenReppSIT I also get these compile errors. That is because clang-format sorts the includes alphabetically and we do not enforce include correctness (see also #2666). Btw: cmocka assumes four includes,...

@JuergenReppSIT @wxleong The semicolon issue is fixed with the following in `.clang-format`. Then you can have a semicolon or not, both works. (The comments will still have a weird identation,...

We can do that, but it should be "read-only", i.e. it cannot alter the commands/responses sent. Otherwise you just have another way to create new tctis.

Ok, this is what we know: In `tcti_from_file()` * we print `Attempting to load TCTI file: device` * `handle_from_name()` actually gets passed `"device"` * we dlsym and call `Tss2_Tcti_Info()` on...

Although this is a draft, it is ready for comments!

@JuergenReppSIT Weird, that happens when no files are built by make. The command should rebuild the whole project (depending on how you `./configure`d it. The following is the command executed....

Woah, exciting! I was working on something similar, an out-of-tree [Rust framework ](https://github.com/joholl/tpm2-tss-rs/blob/main/tss2-tcti-foobar/src/lib.rs) for writing TCTIs. It is already fully functional. However, it escalated a little, so I am currently...

Works for me! ```bash LD_LIBRARY_PATH=:../tpm2-tss/src/tss2-tcti/.libs PYTHONPATH=/path/to/python/script/ TSS2_LOG=tcti+trace tpm2 startup -c --tcti="py:foobar:libtpms" ``` When my python script errors during init (e.g. because I call it with args=None which the example script...

Also, I made [tpmstream](https://github.com/joholl/tpmstream) (master branch, not released yet) a tcti like in your example. So you can do the following now: ```bash LD_LIBRARY_PATH=:../tpm2-tss/src/tss2-tcti/.libs tpm2 startup -c --tcti="py:tpmstream:libtpms" ```

> In the past I did debug FAPI with the following script Ah, that is helpful, thanks. > What exactly did you mean in this context with "no global state"?...