agent: expose shadow key type
For TPM support it is necessary to indroduce another type of shadow
key, so allow other agent functions to extract the type so they can
make the right decisions based on it.
Minor editorial changes by wk
- Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>