key: add tpm_send command
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 23 Nov 2010 23:54:16 +0000 (18:54 -0500)
committerJames Morris <jmorris@namei.org>
Sun, 28 Nov 2010 21:55:22 +0000 (08:55 +1100)
commitc749ba912e87ccebd674ae24b97462176c63732e
tree72dff433660102d7eba7186f35bbd2aab21b1b6a
parenta0e39349d80d8b5deeb264fb190bd064f7063252
key: add tpm_send command

Add internal kernel tpm_send() command used to seal/unseal keys.

Changelog:
- replaced module_put in tpm_send() with new tpm_chip_put() wrapper
  (suggested by David Howells)
- Make tpm_send() cmd argument a 'void *' (suggested by David Howells)

Signed-off-by: David Safford <safford@watson.ibm.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Serge E. Hallyn <serge.hallyn@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
drivers/char/tpm/tpm.c
include/linux/tpm.h