SigV4 v1.0.0
SigV4 Library for AWS Authentication
sigv4_config_defaults.h
Go to the documentation of this file.
1/*
2 * SigV4 Utility Library v1.0.0
3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy of
6 * this software and associated documentation files (the "Software"), to deal in
7 * the Software without restriction, including without limitation the rights to
8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 * the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22
35#ifndef SIGV4_CONFIG_DEFAULTS_H_
36#define SIGV4_CONFIG_DEFAULTS_H_
37
38/* *INDENT-OFF* */
39#ifdef __cplusplus
40 extern "C" {
41#endif
42/* *INDENT-ON* */
43
44/* The macro definition for SIGV4_DO_NOT_USE_CUSTOM_CONFIG is for Doxygen
45 * documentation only. */
46
61#ifdef DOXYGEN
62 #define SIGV4_DO_NOT_USE_CUSTOM_CONFIG
63#endif
64
75#ifndef SIGV4_PROCESSING_BUFFER_LENGTH
76 #define SIGV4_PROCESSING_BUFFER_LENGTH 1024U
77#endif
78
89#ifndef SIGV4_MAX_HTTP_HEADER_COUNT
90 #define SIGV4_MAX_HTTP_HEADER_COUNT 100U
91#endif
92
103#ifndef SIGV4_MAX_QUERY_PAIR_COUNT
104 #define SIGV4_MAX_QUERY_PAIR_COUNT 100U
105#endif
106
116#ifndef SIGV4_WORST_CASE_SORT_STACK_SIZE
117 #define SIGV4_WORST_CASE_SORT_STACK_SIZE 14U
118#endif
119
129#ifndef SIGV4_HASH_MAX_BLOCK_LENGTH
130 #define SIGV4_HASH_MAX_BLOCK_LENGTH 64U
131#endif
132
144#ifndef SIGV4_HASH_MAX_DIGEST_LENGTH
145 #define SIGV4_HASH_MAX_DIGEST_LENGTH 32U
146#endif
147
158#ifndef SIGV4_USE_CANONICAL_SUPPORT
159 #define SIGV4_USE_CANONICAL_SUPPORT 1
160#endif
161
180#ifndef LogError
181 #define LogError( message )
182#endif
183
202#ifndef LogWarn
203 #define LogWarn( message )
204#endif
205
224#ifndef LogInfo
225 #define LogInfo( message )
226#endif
227
246#ifndef LogDebug
247 #define LogDebug( message )
248#endif
249
250/* *INDENT-OFF* */
251#ifdef __cplusplus
252 }
253#endif
254/* *INDENT-ON* */
255
256#endif /* ifndef SIGV4_CONFIG_DEFAULTS_H_ */