geom_eli.c (161052) | geom_eli.c (161127) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2004 Pawel Jakub Dawidek | 2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 9 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 9 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sbin/geom/class/eli/geom_eli.c 161052 2006-08-07 20:09:09Z pjd $"); | 28__FBSDID("$FreeBSD: head/sbin/geom/class/eli/geom_eli.c 161127 2006-08-09 18:11:14Z pjd $"); |
29 30#include <stdio.h> 31#include <stdint.h> 32#include <stdlib.h> 33#include <unistd.h> 34#include <fcntl.h> 35#include <readpassphrase.h> 36#include <string.h> --- 36 unchanged lines hidden (view full) --- 73static void eli_clear(struct gctl_req *req); 74static void eli_dump(struct gctl_req *req); 75 76/* 77 * Available commands: 78 * 79 * init [-bhPv] [-a aalgo] [-e ealgo] [-i iterations] [-l keylen] [-K newkeyfile] prov 80 * label - alias for 'init' | 29 30#include <stdio.h> 31#include <stdint.h> 32#include <stdlib.h> 33#include <unistd.h> 34#include <fcntl.h> 35#include <readpassphrase.h> 36#include <string.h> --- 36 unchanged lines hidden (view full) --- 73static void eli_clear(struct gctl_req *req); 74static void eli_dump(struct gctl_req *req); 75 76/* 77 * Available commands: 78 * 79 * init [-bhPv] [-a aalgo] [-e ealgo] [-i iterations] [-l keylen] [-K newkeyfile] prov 80 * label - alias for 'init' |
81 * attach [-dpv] [-k keyfile] prov | 81 * attach [-dprv] [-k keyfile] prov |
82 * detach [-fl] prov ... 83 * stop - alias for 'detach' 84 * onetime [-d] [-a aalgo] [-e ealgo] [-l keylen] prov ... 85 * setkey [-pPv] [-n keyno] [-k keyfile] [-K newkeyfile] prov 86 * delkey [-afv] [-n keyno] prov 87 * kill [-av] [prov ...] 88 * backup [-v] prov file 89 * restore [-v] file prov --- 29 unchanged lines hidden (view full) --- 119 }, 120 "- an alias for 'init'" 121 }, 122 { "attach", G_FLAG_VERBOSE | G_FLAG_LOADKLD, eli_main, 123 { 124 { 'd', "detach", NULL, G_TYPE_NONE }, 125 { 'k', "keyfile", keyfile, G_TYPE_STRING }, 126 { 'p', "nopassphrase", NULL, G_TYPE_NONE }, | 82 * detach [-fl] prov ... 83 * stop - alias for 'detach' 84 * onetime [-d] [-a aalgo] [-e ealgo] [-l keylen] prov ... 85 * setkey [-pPv] [-n keyno] [-k keyfile] [-K newkeyfile] prov 86 * delkey [-afv] [-n keyno] prov 87 * kill [-av] [prov ...] 88 * backup [-v] prov file 89 * restore [-v] file prov --- 29 unchanged lines hidden (view full) --- 119 }, 120 "- an alias for 'init'" 121 }, 122 { "attach", G_FLAG_VERBOSE | G_FLAG_LOADKLD, eli_main, 123 { 124 { 'd', "detach", NULL, G_TYPE_NONE }, 125 { 'k', "keyfile", keyfile, G_TYPE_STRING }, 126 { 'p', "nopassphrase", NULL, G_TYPE_NONE }, |
127 { 'r', "readonly", NULL, G_TYPE_NONE }, |
|
127 G_OPT_SENTINEL 128 }, | 128 G_OPT_SENTINEL 129 }, |
129 "[-dpv] [-k keyfile] prov" | 130 "[-dprv] [-k keyfile] prov" |
130 }, 131 { "detach", 0, NULL, 132 { 133 { 'f', "force", NULL, G_TYPE_NONE }, 134 { 'l', "last", NULL, G_TYPE_NONE }, 135 G_OPT_SENTINEL 136 }, 137 "[-fl] prov ..." --- 1026 unchanged lines hidden --- | 131 }, 132 { "detach", 0, NULL, 133 { 134 { 'f', "force", NULL, G_TYPE_NONE }, 135 { 'l', "last", NULL, G_TYPE_NONE }, 136 G_OPT_SENTINEL 137 }, 138 "[-fl] prov ..." --- 1026 unchanged lines hidden --- |