diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-10-16 16:39:54 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-03-19 15:23:49 +0100 |
commit | a2f97ff8607912a0955f48322153b8d20c551b66 (patch) | |
tree | 2f3887bc2d161a0f692425fe29cc875ab6490e0c /src | |
parent | ac90fcee2fde4322d829f839e1bb3d7ceac099d6 (diff) | |
download | strongswan-a2f97ff8607912a0955f48322153b8d20c551b66.tar.bz2 strongswan-a2f97ff8607912a0955f48322153b8d20c551b66.tar.xz |
Add AUTH signature info data structure
The sign_info_t type is used to transfer an ISA context id and the
initial message from the keymat to the TKM private key sign operation.
Diffstat (limited to 'src')
-rw-r--r-- | src/charon-tkm/src/tkm/tkm_types.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/charon-tkm/src/tkm/tkm_types.h b/src/charon-tkm/src/tkm/tkm_types.h index 28c4d9948..96a3bb273 100644 --- a/src/charon-tkm/src/tkm/tkm_types.h +++ b/src/charon-tkm/src/tkm/tkm_types.h @@ -74,6 +74,7 @@ typedef struct isa_info_t isa_info_t; /** * IKE SA info data structure. + * * This type is used to transfer ISA information from the keymat of the parent * SA to the keymat of the new IKE SA. For this purpose the skd data chunk is * (ab)used. This is possible since the sk_d chunk is treated as an opaque value @@ -94,4 +95,29 @@ struct isa_info_t { }; +typedef struct sign_info_t sign_info_t; + +/** + * AUTH signature info data structure. + * + * This type is used to transfer an ISA context id and the initial message + * from the keymat to the TKM private key sign operation. For this purpose the + * auth octets chunk is (ab)used and the data is stored in this chunk. + * This is possible since the auth octets are treated as opaque value and handed + * to the private key sign function as-is without any processing. + */ +struct sign_info_t { + + /** + * ISA context id. + */ + isa_id_type isa_id; + + /** + * Init message. + */ + chunk_t init_message; + +}; + #endif /** TKM_TYPES_H_ */ |