WIP: Ported openconnect TPM2 code

This introduces transparent loading of TPM2 keys which are in PEM
form by gnutls_privkey_import_x509_raw() and higher level functions
which wrap it.

Resolves: #594

Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
35 jobs for tmp-tpm2 in 40 minutes and 22 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Stage1 Testing
failed #366880279
shared docker
Debian.cross.aarch64-linux-gnu

00:07:06

failed #366880488
shared docker
Debian.cross.arm-linux-gnueabihf

00:06:49

failed #366879876
shared docker
Debian.cross.i686-linux-gnu

00:06:33

failed #366881228
shared docker
Debian.cross.mips-linux-gnu

00:07:12

failed #366880829
shared
Debian.x86_64

00:07:12

failed #366883760
shared
FIPS140-2.Fedora.x86_64

00:08:54

failed #366890280
shared docker
MinGW32

00:14:44

failed #366893399
shared docker
MinGW64

00:15:13

failed #366883244
shared
SSL-3.0.Fedora.x86_64

00:09:17

failed #366883957
shared
abi/coverage

00:08:59

failed #366883843
shared
asan.Fedora.x86_64

00:09:59

passed #366869524
commit-check

00:00:54

failed #366902291
shared
doc-dist.Fedora

00:23:18

failed #366881688
shared
minimal.Fedora.x86_64

00:08:26

failed #366880696
shared
static-analyzers.Fedora.x86_64

00:07:56

failed #366882865
shared
threadsan.Fedora.x86_64

00:08:28

failed #366886729
shared
ubsan-Werror.Fedora.x86_64

00:12:40

failed #366883023
shared
valgrind.Fedora.x86_64

00:09:11

failed #366869630
docker shared
Debian.cross.aarch64-linux-gnu

00:07:11

failed #366869626
docker shared
Debian.cross.arm-linux-gnueabihf

00:07:15

failed #366869624
docker shared
Debian.cross.i686-linux-gnu

00:06:58

failed #366869629
docker shared
Debian.cross.mips-linux-gnu

00:07:39

failed #366869619
shared
Debian.x86_64

00:07:21

failed #366869580
shared
FIPS140-2.Fedora.x86_64

00:09:30

failed #366869610
docker shared
MinGW32

00:14:47

failed #366869604
docker shared
MinGW64

00:16:47

failed #366869568
shared
SSL-3.0.Fedora.x86_64

00:09:05

failed #366869550
shared
abi/coverage

00:09:44

failed #366869596
shared
asan.Fedora.x86_64

00:09:36

failed #366869540
shared
doc-dist.Fedora

00:23:12

failed #366869560
shared
minimal.Fedora.x86_64

00:07:54

failed #366869601
shared
static-analyzers.Fedora.x86_64

00:07:19

failed #366869599
shared
threadsan.Fedora.x86_64

00:08:50

failed #366869612
shared
ubsan-Werror.Fedora.x86_64

00:12:08

failed #366869589
shared
valgrind.Fedora.x86_64

00:08:53

 
Name Stage Failure
failed
doc-dist.Fedora Stage1 Testing
preprocessor error                    29
bad compiler arguments 12
autoconf compile/link 1380
no input file 43
cleanups performed 0
files in cache 8175
cache size 295.7 MB
max cache size 5.0 GB
ERROR: Job failed: exit code 1
failed
Debian.cross.i686-linux-gnu Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366879876 responseStatus=201 Created token=-aGKDfYR
ERROR: Job failed: exit code 1
failed
Debian.cross.mips-linux-gnu Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366881228 responseStatus=201 Created token=qXa5_sjW
ERROR: Job failed: exit code 1
failed
threadsan.Fedora.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
./*.log: found 1 matching files
WARNING: fuzz/*.log: no matching files
WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
WARNING: tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366882865 responseStatus=201 Created token=mMAtrx9v
ERROR: Job failed: exit code 1
failed
valgrind.Fedora.x86_64 Stage1 Testing
files in cache                      3206
cache size 116.2 MB
max cache size 5.0 GB
Uploading artifacts...
./*.log: found 1 matching files
WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366883023 responseStatus=201 Created token=jiqNHHyq
ERROR: Job failed: exit code 1
failed
ubsan-Werror.Fedora.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: guile/tests/*.log: no matching files
./*.log: found 1 matching files

WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
WARNING: tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366886729 responseStatus=201 Created token=v_xscVmf
ERROR: Job failed: exit code 1
failed
Debian.cross.arm-linux-gnueabihf Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366880488 responseStatus=201 Created token=gC8Ew4ZR
ERROR: Job failed: exit code 1
failed
Debian.cross.aarch64-linux-gnu Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366880279 responseStatus=201 Created token=gSzoW6a4
ERROR: Job failed: exit code 1
failed
Debian.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366880829 responseStatus=201 Created token=bsVFyaLF
ERROR: Job failed: exit code 1
failed
static-analyzers.Fedora.x86_64 Stage1 Testing
make: *** [maint.mk:1164: sc_m4_quote_check] Error 1
Running after script...
$ /bin/true
Uploading artifacts...
./*.log: found 1 matching files
WARNING: scan-build-lib/*: no matching files
WARNING: scan-build-libdane/*: no matching files
Uploading artifacts to coordinator... ok
id=366880696 responseStatus=201 Created token=97xw_7Jx
ERROR: Job failed: exit code 1
failed
minimal.Fedora.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
./*.log: found 1 matching files
WARNING: fuzz/*.log: no matching files
WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
WARNING: tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366881688 responseStatus=201 Created token=sfqXHY35
ERROR: Job failed: exit code 1
failed
FIPS140-2.Fedora.x86_64 Stage1 Testing
files in cache                      3214
cache size 117.6 MB
max cache size 5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
SSL-3.0.Fedora.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
WARNING: build/guile/tests/*.log: no matching files
WARNING: build/tests/*.log: no matching files
build/*.log: found 1 matching files

WARNING: build/tests/*/*.log: no matching files
WARNING: build/tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366883244 responseStatus=201 Created token=mcbM6sZx
ERROR: Job failed: exit code 1
failed
abi/coverage Stage1 Testing
WARNING: ./gnutls-prev-abi.tmp/: no matching files 
WARNING: compat_reports/: no matching files
./*.log: found 1 matching files

WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
WARNING: tests/suite/*/*.log: no matching files
WARNING: guile/tests/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366883957 responseStatus=201 Created token=jhMKo5ky
ERROR: Job failed: exit code 1
failed
asan.Fedora.x86_64 Stage1 Testing
max cache size                       5.0 GB
Uploading artifacts...
./*.log: found 1 matching files
WARNING: fuzz/*.log: no matching files
WARNING: tests/*.log: no matching files
WARNING: tests/*/*.log: no matching files
WARNING: tests/suite/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366883843 responseStatus=201 Created token=E2Dk-oLG
ERROR: Job failed: exit code 1
failed
MinGW32 Stage1 Testing
files in cache                      2891
cache size 81.5 MB
max cache size 5.0 GB
Uploading artifacts...
build/*.log: found 1 matching files
WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366890280 responseStatus=201 Created token=Q9DpJPss
ERROR: Job failed: exit code 1
failed
MinGW64 Stage1 Testing
files in cache                      2907
cache size 89.6 MB
max cache size 5.0 GB
Uploading artifacts...
build/*.log: found 1 matching files
WARNING: build/tests/*.log: no matching files
WARNING: build/tests/*/*.log: no matching files
Uploading artifacts to coordinator... ok
id=366893399 responseStatus=201 Created token=iukTdzAE
ERROR: Job failed: exit code 1