Skip to content

Commit

Permalink
Add support for files from the *other* OpenSSL TPM2 engine. FFS.
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 3, 2018
1 parent 42bfadb commit ce6158f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openssl.c
Expand Up @@ -952,6 +952,9 @@ static int load_certificate(struct openconnect_info *vpninfo)
} else if (!strcmp(buf, "-----BEGIN TSS2 KEY BLOB-----\n")) {
fclose(f);
return load_tpm_certificate(vpninfo, "tpm2");
} else if (!strcmp(buf, "-----BEGIN TSS2 PRIVKEY BLOB v1-----\n")) {
fclose(f);
return load_tpm_certificate(vpninfo, "tpm2tss");
} else if (!strcmp(buf, "-----BEGIN RSA PRIVATE KEY-----\n") ||
!strcmp(buf, "-----BEGIN DSA PRIVATE KEY-----\n") ||
!strcmp(buf, "-----BEGIN EC PRIVATE KEY-----\n") ||
Expand Down

0 comments on commit ce6158f

Please sign in to comment.