moved attestation plugins to libpts in order to resolve circular reference with libimcv
[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|--components|--products|--hashes|--add|--del [options]\n\
28 \n\
29 ipsec attest --files [--product <name>|--pid <id>]\n\
30 Show a list of files with a software product name or\n\
31 its primary key as an optional selector.\n\
32 \n\
33 ipsec attest --components [--product <name>|--pid <id>]\n\
34 Show a list of components with a software product name or\n\
35 its primary key as an optional selector.\n\
36 \n\
37 ipsec attest --products [--file <path>|--fid <id>]\n\
38 Show a list of supported software products with a file path or\n\
39 its primary key as an optional selector.\n\
40 \n\
41 ipsec attest --hashes [--sha1|--sha256|--sha384] [--product <name>|--pid <id>]\n\
42 Show a list of measurement hashes for a given software product or\n\
43 its primary key as an optional selector.\n\
44 \n\
45 ipsec attest --hashes [--sha1|--sha256|--sha384] [--file <path>|--fid <id>]\n\
46 Show a list of measurement hashes for a given file or\n\
47 its primary key as an optional selector.\n\
48 \n\
49 ipsec attest --add --file <path>|--dir <path>|--product <name>\n\
50 Add a file, directory or product entry\n\
51 \n\
52 ipsec attest --del --file <path>|--fid <id>|--dir <path>|--did <id>|--product <name>|--pid <id>\n\
53 Delete a file, directory or product entry referenced either by value or by primary key\n\
54 \n");
55 }
56