imc/imv->send_message() uses attr_list
[strongswan.git] / src / libpts / plugins / imv_attestation / attest_usage.c
1 /*
2 * Copyright (C) 2011 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 #include <stdio.h>
17
18 #include "attest_usage.h"
19
20 /**
21 * print attest usage info
22 */
23 void usage(void)
24 {
25 printf("\
26 Usage:\n\
27 ipsec attest --files|--products|--keys|--hashes [options]\n\
28 \n\
29 ipsec attest --components|-keys|--measurements|--add|--del [options]\n\
30 \n\
31 ipsec attest --files [--product <name>|--pid <id>]\n\
32 Show a list of files with a software product name or\n\
33 its primary key as an optional selector.\n\
34 \n\
35 ipsec attest --products [--file <path>|--fid <id>]\n\
36 Show a list of supported software products with a file path or\n\
37 its primary key as an optional selector.\n\
38 \n\
39 ipsec attest --hashes [--sha1|--sha256|--sha384] [--product <name>|--pid <id>]\n\
40 Show a list of measurement hashes for a given software product or\n\
41 its primary key as an optional selector.\n\
42 \n\
43 ipsec attest --hashes [--sha1|--sha256|--sha384] [--file <path>|--fid <id>]\n\
44 Show a list of measurement hashes for a given file or\n\
45 its primary key as an optional selector.\n\
46 \n\
47 ipsec attest --components [--key <digest>|--kid <id>]\n\
48 Show a list of components with an AIK digest or\n\
49 its primary key as an optional selector.\n\
50 \n\
51 ipsec attest --keys [--components <cfn>|--cid <id>]\n\
52 Show a list of AIK key digests with a component or\n\
53 its primary key as an optional selector.\n\
54 \n\
55 ipsec attest --measurements [--sha1|--sha256|--sha384] [--component <cfn>|--cid <id>]\n\
56 Show a list of component measurements for a given component or\n\
57 its primary key as an optional selector.\n\
58 \n\
59 ipsec attest --measurements [--sha1|--sha256|--sha384] [--key <digest>|--kid <id>|--aik <path>]\n\
60 Show a list of component measurements for a given AIK or\n\
61 its primary key as an optional selector.\n\
62 \n\
63 ipsec attest --add --file <path>|--dir <path>|--product <name>|--component <cfn>\n\
64 Add a file, directory, product or component entry\n\
65 Component <cfn> entries must be of the form <vendor_id>/<name>-<qualifier>\n\
66 \n\
67 ipsec attest --add [--owner <name>] --key <digest>|--aik <path>\n\
68 Add an AIK public key digest entry preceded by an optional owner name\n\
69 \n\
70 ipsec attest --del --file <path>|--fid <id>|--dir <path>|--did <id>\n\
71 Delete a file or directory entry referenced either by value or primary key\n\
72 \n\
73 ipsec attest --del --product <name>|--pid <id>|--component <cfn>|--cid <id>\n\
74 Delete a product or component entry referenced either by value or primary key\n\
75 \n\
76 ipsec attest --del --key <digest>|--kid <id>|--aik <path>\n\
77 Delete an AIK entry referenced either by value or primary key\n\
78 \n");
79 }
80