Skip to content

Commit

Permalink
First cut at IBM TSS support, mostly copied from James's tpm2 engine.
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed Oct 11, 2018
1 parent 6e15eb5 commit c116b30
Show file tree
Hide file tree
Showing 5 changed files with 536 additions and 14 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -492,7 +492,7 @@ case "$ssl_library" in
AC_SUBST(TPM2_LIBS, ['$(TASN1_LIBS) $(TSS2_ESYS_LIBS)'])
tss2lib=tss2-esys],
[:])
if test "$tss2lib" = "xxNOTIMPLEMENTEDYETxx"; then
if test "$tss2lib" = ""; then
AC_CHECK_LIB([tss], [TSS_Create], [tss2inc=tss2
tss2lib=tss],
AC_CHECK_LIB([ibmtss], [TSS_Create], [tss2inc=ibmtss
Expand Down
2 changes: 1 addition & 1 deletion gnutls_tpm2_esys.c
Expand Up @@ -510,7 +510,7 @@ int install_tpm2_key(struct openconnect_info *vpninfo, gnutls_privkey_t *pkey, g
&vpninfo->tpm2->pub);
if (r) {
vpn_progress(vpninfo, PRG_ERR,
_("Failed to import TPM2 private key data: 0x%x\n"),
_("Failed to import TPM2 public key data: 0x%x\n"),
r);
goto err_out;
}
Expand Down

0 comments on commit c116b30

Please sign in to comment.