l8w8jwt
Loading...
Searching...
No Matches
retcodes.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
23#ifndef L8W8JWT_RETCODES_H
24#define L8W8JWT_RETCODES_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
33#define L8W8JWT_SUCCESS 0
34
38#define L8W8JWT_NULL_ARG 100
39
43#define L8W8JWT_INVALID_ARG 200
44
48#define L8W8JWT_OUT_OF_MEM 300
49
53#define L8W8JWT_OVERFLOW 310
54
58#define L8W8JWT_SIGNATURE_CREATION_FAILURE 400
59
63#define L8W8JWT_SHA2_FAILURE 410
64
68#define L8W8JWT_KEY_PARSE_FAILURE 420
69
73#define L8W8JWT_BASE64_FAILURE 425
74
80#define L8W8JWT_WRONG_KEY_TYPE 450
81
85#define L8W8JWT_MBEDTLS_CTR_DRBG_SEED_FAILURE 500
86
90#define L8W8JWT_DECODE_FAILED_INVALID_TOKEN_FORMAT 600
91
95#define L8W8JWT_DECODE_FAILED_MISSING_SIGNATURE 700
96
101#define L8W8JWT_UNSUPPORTED_ALG 800
102
103#ifdef __cplusplus
104} // extern "C"
105#endif
106
107#endif // L8W8JWT_RETCODES_H