Fix non-existent public key/cert problem

Right at the moment the token library segfaults if the public key
isn't found.  This is because the serial number gets set to NULL and
the ATTRIB macro tries to do strlen(NULL).  Fix this, but also ensure
that any failure to load the public key/cert results in the token
being removed from the exported list.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2 files changed