]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/Tool/keychain_sync.h
Security-59306.101.1.tar.gz
[apple/security.git] / keychain / SecureObjectSync / Tool / keychain_sync.h
1 /*
2 * Copyright (c) 2013-2014 Apple Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24
25 #include "SecurityTool/sharedTool/security_tool_commands.h"
26
27 SECURITY_COMMAND(
28 "sync", keychain_sync,
29 "[options]\n"
30 "Keychain Syncing\n"
31 " -d disable\n"
32 " -e enable (join/create circle)\n"
33 " -i info (current status)\n"
34 " -m dump my peer\n"
35 "\n"
36 "Account/Circle Management\n"
37 " -a accept all applicants\n"
38 " -r reject all applicants\n"
39 " -b device|all|single Register a backup bag - THIS RESETS BACKUPS!\n"
40 " -N (re-)set to new account (USE WITH CARE: device will not leave circle before resetting account!)\n"
41 " -O reset to offering\n"
42 " -R reset circle\n"
43 " -o list view unaware peers in circle\n"
44 " -0 boot view unaware peers from circle\n"
45 " -5 cleanup old KVS keys in KVS\n"
46 "\n"
47 "Circle Tools\n"
48 " --remove-peer SPID Remove a peer identified by the first 8 or more\n"
49 " characters of its spid. Specify multiple times to\n"
50 " remove more than one peer.\n"
51 "\n"
52 "Password\n"
53 " -P [label:]password set password (optionally for a given label) for sync\n"
54 " -T [label:]password try password (optionally for a given label) for sync\n"
55 "\n"
56 "KVS\n"
57 " -k pend all registered kvs keys\n"
58 " -C clear all values from KVS\n"
59 " -D [itemName] dump contents of KVS\n"
60 " -W sync and dump\n"
61 "\n"
62 "Misc\n"
63 " -v [enable|disable|query:viewname] enable, disable, or query my PeerInfo's view set\n"
64 " viewnames are: keychain|masterkey|iclouddrive|photos|cloudkit|escrow|fde|maildrop|icloudbackup|notes|imessage|appletv|homekit\n"
65 " wifi|passwords|creditcards|icloudidentity|othersyncable\n"
66 " -L list all known view and their status\n"
67 " -U purge private key material cache\n"
68 " -V Report View Sync Status on all known clients.\n",
69 "Keychain Syncing controls." )
70
71