summaryrefslogtreecommitdiff
path: root/common/biderror.h
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-12-30 16:24:06 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:15 +0100
commita20f3786882ad94d9913d4d951bc441908f91e8c (patch)
tree9e24f509906b72f5f0562ec3691cabef6712ec33 /common/biderror.h
parentf7f4e12e35289247f8d6ffb688f7099b84632774 (diff)
downloadfribid-a20f3786882ad94d9913d4d951bc441908f91e8c.tar.gz
fribid-a20f3786882ad94d9913d4d951bc441908f91e8c.tar.bz2
fribid-a20f3786882ad94d9913d4d951bc441908f91e8c.zip
Error codes for invalid actions and missing parameters
Diffstat (limited to 'common/biderror.h')
-rw-r--r--common/biderror.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/common/biderror.h b/common/biderror.h
new file mode 100644
index 0000000..7d85890
--- /dev/null
+++ b/common/biderror.h
@@ -0,0 +1,41 @@
+/*
+
+ Copyright (c) 2009 Samuel Lidén Borell <samuel@slbdata.se>
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+*/
+
+#ifndef __BIDERROR_H__
+#define __BIDERROR_H__
+
+typedef enum {
+ BIDERR_OK = 0,
+ BIDERR_InternalError = 1,
+ BIDERR_UserCancel = 8002,
+ BIDERR_InvalidAction = 8008,
+ BIDERR_InvalidPIN = 8013,
+ BIDERR_NotSSL = 8015,
+ BIDERR_MissingParameter = 8016,
+ BIDERR_HostnameIsIP = 8019,
+ BIDERR_BlockedPIN = 8102,
+} BankIDError;
+
+#endif
+