952b88b89334eb09e9d708c58a8235d75efe13de
2 * Copyright (C) 2011 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
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>.
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
18 #include "attest_usage.h"
21 * print attest usage info
27 ipsec attest --files|--products|--keys|--hashes [options]\n\
29 ipsec attest --components|-keys|--measurements|--add|--del [options]\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\
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\
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\
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\
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\
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\
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\
59 ipsec attest --measurements [--sha1|--sha256|--sha384] [--key <digest>|--kid <id>]\n\
60 Show a list of component measurements for a given AIK or\n\
61 its primary key as an optional selector.\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\
67 ipsec attest --add [--owner <name>] --key <digest>\n\
68 Add an AIK public key digest entry preceded by an optional owner name\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\
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\
76 ipsec attest --del --key <digest>|--kid <id>\n\
77 Delete an AIK entry referenced either by value or primary key\n\