|
pam_pkcs11
0.6.8
|
00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 00003 * 00004 * The contents of this file are subject to the Mozilla Public License Version 00005 * 1.1 (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * http://www.mozilla.org/MPL/ 00008 * 00009 * Software distributed under the License is distributed on an "AS IS" basis, 00010 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00011 * for the specific language governing rights and limitations under the 00012 * License. 00013 * 00014 * The Original Code is the Netscape security libraries. 00015 * 00016 * The Initial Developer of the Original Code is 00017 * Netscape Communications Corporation. 00018 * Portions created by the Initial Developer are Copyright (C) 1994-2000 00019 * the Initial Developer. All Rights Reserved. 00020 * 00021 * Contributor(s): 00022 * 00023 * Alternatively, the contents of this file may be used under the terms of 00024 * either the GNU General Public License Version 2 or later (the "GPL"), or 00025 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 00026 * in which case the provisions of the GPL or the LGPL are applicable instead 00027 * of those above. If you wish to allow use of your version of this file only 00028 * under the terms of either the GPL or the LGPL, and not to allow others to 00029 * use your version of this file under the terms of the MPL, indicate your 00030 * decision by deleting the provisions above and replace them with the notice 00031 * and other provisions required by the GPL or the LGPL. If you do not delete 00032 * the provisions above, a recipient may use your version of this file under 00033 * the terms of any one of the MPL, the GPL or the LGPL. 00034 * 00035 * ***** END LICENSE BLOCK ***** */ 00036 00037 /* General security error codes */ 00038 /* Caller must #include "secerr.h" */ 00039 00040 ER3(SEC_ERROR_IO, SEC_ERROR_BASE + 0, 00041 "An I/O error occurred during security authorization.") 00042 00043 ER3(SEC_ERROR_LIBRARY_FAILURE, SEC_ERROR_BASE + 1, 00044 "security library failure.") 00045 00046 ER3(SEC_ERROR_BAD_DATA, SEC_ERROR_BASE + 2, 00047 "security library: received bad data.") 00048 00049 ER3(SEC_ERROR_OUTPUT_LEN, SEC_ERROR_BASE + 3, 00050 "security library: output length error.") 00051 00052 ER3(SEC_ERROR_INPUT_LEN, SEC_ERROR_BASE + 4, 00053 "security library has experienced an input length error.") 00054 00055 ER3(SEC_ERROR_INVALID_ARGS, SEC_ERROR_BASE + 5, 00056 "security library: invalid arguments.") 00057 00058 ER3(SEC_ERROR_INVALID_ALGORITHM, SEC_ERROR_BASE + 6, 00059 "security library: invalid algorithm.") 00060 00061 ER3(SEC_ERROR_INVALID_AVA, SEC_ERROR_BASE + 7, 00062 "security library: invalid AVA.") 00063 00064 ER3(SEC_ERROR_INVALID_TIME, SEC_ERROR_BASE + 8, 00065 "Improperly formatted time string.") 00066 00067 ER3(SEC_ERROR_BAD_DER, SEC_ERROR_BASE + 9, 00068 "security library: improperly formatted DER-encoded message.") 00069 00070 ER3(SEC_ERROR_BAD_SIGNATURE, SEC_ERROR_BASE + 10, 00071 "Peer's certificate has an invalid signature.") 00072 00073 ER3(SEC_ERROR_EXPIRED_CERTIFICATE, SEC_ERROR_BASE + 11, 00074 "Peer's Certificate has expired.") 00075 00076 ER3(SEC_ERROR_REVOKED_CERTIFICATE, SEC_ERROR_BASE + 12, 00077 "Peer's Certificate has been revoked.") 00078 00079 ER3(SEC_ERROR_UNKNOWN_ISSUER, SEC_ERROR_BASE + 13, 00080 "Peer's Certificate issuer is not recognized.") 00081 00082 ER3(SEC_ERROR_BAD_KEY, SEC_ERROR_BASE + 14, 00083 "Peer's public key is invalid.") 00084 00085 ER3(SEC_ERROR_BAD_PASSWORD, SEC_ERROR_BASE + 15, 00086 "The security password entered is incorrect.") 00087 00088 ER3(SEC_ERROR_RETRY_PASSWORD, SEC_ERROR_BASE + 16, 00089 "New password entered incorrectly. Please try again.") 00090 00091 ER3(SEC_ERROR_NO_NODELOCK, SEC_ERROR_BASE + 17, 00092 "security library: no nodelock.") 00093 00094 ER3(SEC_ERROR_BAD_DATABASE, SEC_ERROR_BASE + 18, 00095 "security library: bad database.") 00096 00097 ER3(SEC_ERROR_NO_MEMORY, SEC_ERROR_BASE + 19, 00098 "security library: memory allocation failure.") 00099 00100 ER3(SEC_ERROR_UNTRUSTED_ISSUER, SEC_ERROR_BASE + 20, 00101 "Peer's certificate issuer has been marked as not trusted by the user.") 00102 00103 ER3(SEC_ERROR_UNTRUSTED_CERT, SEC_ERROR_BASE + 21, 00104 "Peer's certificate has been marked as not trusted by the user.") 00105 00106 ER3(SEC_ERROR_DUPLICATE_CERT, (SEC_ERROR_BASE + 22), <