]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_keychain/lib/MacOSErrorStrings.h
Security-58286.251.4.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / MacOSErrorStrings.h
1 /*
2 * Copyright (c) 2003-2004,2011,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 Note: the comments that appear after these errors are used to create SecErrorMessages.strings.
26 The comments must not be multi-line, and should be in a form meaningful to an end user. If
27 a different or additional comment is needed, it can be put in the header doc format, or on a
28 line that does not start with errZZZ.
29 */
30
31 /* Definitions for miscellaneous OS errors that can be returned (with appropriate error strings) */
32 enum
33 {
34 errSecMisc_nsvErr = -35, /* The disk couldn't be found. It may have been ejected. */
35 errSecMisc_bdNamErr = -37, /* Tried to open a file whose name contains an illegal character. */
36 errSecMisc_fnfErr = -43, /* The file could not be found. */
37 errSecMisc_wPrErr = -44, /* The disk is write-protected. */
38 errSecMisc_fLckdErr = -45, /* The file is locked. */
39 errSecMisc_vLckdErr = -46, /* The volume is locked. */
40 errSecMisc_fBsyErr = -47, /* The file is busy. It may be in use by another application. */
41 errSecMisc_dupFNErr = -48, /* A file with the same name already exists. */
42 errSecMisc_opWrErr = -49, /* The file is already open with write permission. */
43 errSecMisc_volOffLinErr = -53, /* The volume is no longer available. It may have been ejected. */
44 errSecMisc_permErr = -54, /* The file could not be opened. It may be in use by another application. */
45 errSecMisc_extFSErr = -58, /* This volume does not appear to be compatible. */
46 errSecMisc_wrPermErr = -61, /* Could not write to the file. It may have been opened with insufficient access privileges. */
47 errSecMisc_offLinErr = -65, /* The storage device is no longer available. It may have been ejected. */
48 errSecMisc_memFullErr = -108,
49 errSecMisc_dirNFErr = -120, /* The directory could not be found. */
50 errSecMisc_volGoneErr = -124, /* The server volume is no longer available. It may have been disconnected. */
51 errSecMisc_userCanceledErr = -128, // The operation was canceled by the user.
52 errSecMisc_resNotFound = -192, /* A required resource could not be found. */
53 errSecMisc_resFNotFound = -193, /* A required resource is missing or damaged. */
54 errSecMisc_icNoURLErr = -673, /* The specified location (URL) is an unknown type, or does not contain enough information. */
55 errSecMisc_icConfigNotFoundErr = -674, /* A helper application to open the specified URL could not be found. */
56 errSecMisc_cantGetFlavorErr = -1854, /* The location (URL) of this item is missing or improperly formatted. */
57 errSecMisc_afpAccessDenied = -5000, /* Access to this item was denied. */
58 errSecMisc_afpUserNotAuth = -5023, /* Authentication failed. The password for this server may have changed since the item was added to the keychain. */
59 errSecMisc_afpPwdPolicyErr = -5046, /* This AppleShare IP server is configured to not allow users to save passwords for automatic login. Contact the server administrator for more information. */
60 };
61