1 /* cvm/errors.c - Error strings 2 * Copyright (C) 2010 Bruce Guenter <bruce@untroubled.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 #include "errors.h" 19 20 static const char na[] = "Unknown error"; 21 22 const char* const cvm_errlist[] = { 23 "No error", /* 0 */ 24 "General error", /* 1 CVME_GENERAL */ 25 "Invalid data from client", /* 2 CVME_BAD_CLIDATA */ 26 "Invalid data from module", /* 3 CVME_BAD_MODDATA */ 27 "Input/Output error", /* 4 CVME_IO */ 28 "Fact missing in data from client", /* 5 CVME_NOFACT */ 29 "Configuration error", /* 6 CVME_CONFIG */ 30 "Credential missing in data from module", /* 7 CVME_NOCRED */ 31 na, 32 na, 33 na,na,na,na,na,na,na,na,na,na, /* 10-19 */ 34 na,na,na,na,na,na,na,na,na,na, /* 20-29 */ 35 na,na,na,na,na,na,na,na,na,na, /* 30-39 */ 36 na,na,na,na,na,na,na,na,na,na, /* 40-49 */ 37 na,na,na,na,na,na,na,na,na,na, /* 50-59 */ 38 na,na,na,na,na,na,na,na,na,na, /* 60-69 */ 39 na,na,na,na,na,na,na,na,na,na, /* 70-79 */ 40 na,na,na,na,na,na,na,na,na,na, /* 80-89 */ 41 na,na,na,na,na,na,na,na,na,na, /* 90-99 */ 42 "Credentials rejected", /* 100 CVME_PERMFAIL */ 43 }; 44 45 const int cvm_nerr = 101; 46