1
/* $Id: errors.h,v 1.14 2004/08/31 12:05:04 nclapies Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: Valery Febvre <vfebvre@easter-eggs.com>
9
* Nicolas Clapies <nclapies@entrouvert.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#define LASSO_XML_ERROR_NODE_NOT_FOUND -10
27
#define LASSO_XML_ERROR_NODE_CONTENT_NOT_FOUND -11
28
#define LASSO_XML_ERROR_ATTR_NOT_FOUND -12
29
#define LASSO_XML_ERROR_ATTR_VALUE_NOT_FOUND -13
31
#define LASSO_DS_ERROR_SIGNATURE_TMPL_CREATION_FAILED -101
32
#define LASSO_DS_ERROR_CONTEXT_CREATION_FAILED -102
33
#define LASSO_DS_ERROR_PUBLIC_KEY_LOAD_FAILED -103
34
#define LASSO_DS_ERROR_PRIVATE_KEY_LOAD_FAILED -104
35
#define LASSO_DS_ERROR_CERTIFICATE_LOAD_FAILED -105
36
#define LASSO_DS_ERROR_SIGNATURE_FAILED -106
37
#define LASSO_DS_ERROR_SIGNATURE_NOT_FOUND -107
38
#define LASSO_DS_ERROR_KEYS_MNGR_CREATION_FAILED -108
39
#define LASSO_DS_ERROR_KEYS_MNGR_INIT_FAILED -109
40
#define LASSO_DS_ERROR_SIGNATURE_VERIFICATION_FAILED -110
41
#define LASSO_DS_ERROR_INVALID_SIGNATURE -111
43
#define LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND -201
44
#define LASSO_SERVER_ERROR_ADD_PROVIDER_FAILED -202
46
#define LASSO_LOGOUT_ERROR_UNSUPPORTED_PROFILE -301
48
#define LASSO_PROFILE_ERROR_INVALID_QUERY -401
49
#define LASSO_PROFILE_ERROR_MISSING_REQUEST -402
51
#define LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ -501
52
#define LASSO_PARAM_ERROR_INVALID_VALUE -502
53
#define LASSO_PARAM_ERROR_CHECK_FAILED -503
55
#define LASSO_ERROR_UNDEFINED -999
57
const char* lasso_strerror(int error_code);