Annotation of embedaddon/strongswan/src/libimcv/plugins/imv_attestation/attest_usage.c, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2011-2017 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 --components|--devices|--sessions|--files|--hashes|--keys [options]\n\
                     28:   \n\
                     29:   ipsec attest --measurements|--packages|--products|--add|--del [options]\n\
                     30:   \n\
                     31:   ipsec attest --components [--key <digest>|--kid <id>]\n\
                     32:     Show a list of components with an AIK digest or\n\
                     33:     its primary key as an optional selector.\n\
                     34:   \n\
                     35:   ipsec attest --devices [--utc]\n\
                     36:     Show a list of registered devices and associated collected information\n\
                     37:   \n\
                     38:   ipsec attest --sessions [--utc]\n\
                     39:     Show a chronologically sorted list of all TNC sessions\n\
                     40:   \n\
                     41:   ipsec attest --files [--product <name>|--pid <id>]\n\
                     42:     Show a list of files with a software product name or\n\
                     43:     its primary key as an optional selector.\n\
                     44:   \n\
                     45:   ipsec attest --hashes [--sha1|--sha256|--sha384] [--product <name>|--pid <id>]\n\
                     46:     Show a list of measurement hashes for a given software product or\n\
                     47:     its primary key as an optional selector.\n\
                     48:   \n\
                     49:   ipsec attest --hashes [--sha1|--sha1-ima|--sha256|--sha384] [--file <path>|--fid <id>]\n\
                     50:     Show a list of measurement hashes for a given file or\n\
                     51:     its primary key as an optional selector.\n\
                     52:   \n\
                     53:   ipsec attest --keys [--components <cfn>|--cid <id>]\n\
                     54:     Show a list of AIK key digests with a component or\n\
                     55:     its primary key as an optional selector.\n\
                     56:   \n\
                     57:   ipsec attest --measurements --sha1|--sha256|--sha384 [--component <cfn>|--cid <id>]\n\
                     58:     Show a list of component measurements for a given component or\n\
                     59:     its primary key as an optional selector.\n\
                     60:   \n\
                     61:   ipsec attest --measurements --sha1|--sha256|--sha384 [--key <digest>|--kid <id>|--aik <path>]\n\
                     62:     Show a list of component measurements for a given AIK or\n\
                     63:     its primary key as an optional selector.\n\
                     64:   \n\
                     65:   ipsec attest --packages [--product <name>|--pid <id>] [--utc]\n\
                     66:     Show a list of software packages for a given product or\n\
                     67:     its primary key as an optional selector.\n\
                     68:   \n\
                     69:   ipsec attest --products [--file <path>|--fid <id>]\n\
                     70:     Show a list of supported software products with a file path or\n\
                     71:     its primary key as an optional selector.\n\
                     72:   \n\
                     73:   ipsec attest --add --file <path>|--dir <path>|--product <name>|--component <cfn>\n\
                     74:     Add a file, directory, product or component entry\n\
                     75:     Component <cfn> entries must be of the form <vendor_id>/<name>-<qualifier>\n\
                     76:   \n\
                     77:   ipsec attest --add [--owner <name>] --key <digest>|--aik <path>\n\
                     78:     Add an AIK public key digest entry preceded by an optional owner name\n\
                     79:   \n\
                     80:   ipsec attest --add --product <name>|--pid <id> --sha1|--sha256|--sha384\n\
                     81:               [--relative|--rel] [--package <name> --version <string>]\n\
                     82:                --dir <path>|--file <path>\n\
                     83:     Add hashes of a single file or all files in a directory under absolute or relative filenames\n\
                     84:   \n\
                     85:   ipsec attest --add --key <digest|--kid <id> --component <cfn>|--cid <id> --sequence <no>|--seq <no>\n\
                     86:     Add an ordered key/component entry\n\
                     87:   \n\
                     88:   ipsec attest --add --package <name> --version <string> [--security|--blacklist]\n\
                     89:               [--product <name>|--pid <id>]\n\
                     90:     Add a package version for a given product optionally with security or blacklist flag\n\
                     91:   \n\
                     92:   ipsec attest --del --file <path>|--fid <id>|--dir <path>|--did <id>\n\
                     93:     Delete a file or directory entry referenced either by value or primary key\n\
                     94:   \n\
                     95:   ipsec attest --del --product <name>|--pid <id>|--component <cfn>|--cid <id>\n\
                     96:     Delete a product or component entry referenced either by value or primary key\n\
                     97:   \n\
                     98:   ipsec attest --del --product <name>|--pid <id> --file <path>|--fid <id>|--dir <path>|--did <id>\n\
                     99:     Delete a product/file entry referenced either by value or primary key\n\
                    100:   \n\
                    101:   ipsec attest --del --key <digest>|--kid <id>|--aik <path>\n\
                    102:     Delete an AIK entry referenced either by value or primary key\n\
                    103:   \n\
                    104:   ipsec attest --del --key <digest|--kid <id> --component <cfn>|--cid <id>\n\
                    105:     Delete a key/component entry\n\
                    106:   \n\
                    107:   ipsec attest --del --product <name>|--pid <id> --sha1|--sha1-ima|--sha256|--sha384\n\
                    108:                [--dir <path>|--did <id>] --file <path>|--fid <id>\n\
                    109:     Delete a file hash given an absolute or relative filename\n\
                    110:   \n");
                    111: }
                    112: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>