swtpm_cert: Use PIN reader only if SWTPM_PKCS11_PIN env var is set

Do not use the PIN reader of SWTPM_PKCS11_PIN is not set to avoid NULL
pointer segmentation faults.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
1 file changed