SigV4 v1.1.0
SigV4 Library for AWS Authentication
sigv4_config_defaults.h
Go to the documentation of this file.
1/*
2 * SigV4 Library v1.1.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
34#ifndef SIGV4_CONFIG_DEFAULTS_H_
35#define SIGV4_CONFIG_DEFAULTS_H_
36
37/* *INDENT-OFF* */
38#ifdef __cplusplus
39 extern "C" {
40#endif
41/* *INDENT-ON* */
42
43/* The macro definition for SIGV4_DO_NOT_USE_CUSTOM_CONFIG is for Doxygen
44 * documentation only. */
45
60#ifdef DOXYGEN
61 #define SIGV4_DO_NOT_USE_CUSTOM_CONFIG
62#endif
63
74#ifndef SIGV4_PROCESSING_BUFFER_LENGTH
75 #define SIGV4_PROCESSING_BUFFER_LENGTH 1024U
76#endif
77
88#ifndef SIGV4_MAX_HTTP_HEADER_COUNT
89 #define SIGV4_MAX_HTTP_HEADER_COUNT 100U
90#endif
91
102#ifndef SIGV4_MAX_QUERY_PAIR_COUNT
103 #define SIGV4_MAX_QUERY_PAIR_COUNT 100U
104#endif
105
115#ifndef SIGV4_WORST_CASE_SORT_STACK_SIZE
116 #define SIGV4_WORST_CASE_SORT_STACK_SIZE 14U
117#endif
118
128#ifndef SIGV4_HASH_MAX_BLOCK_LENGTH
129 #define SIGV4_HASH_MAX_BLOCK_LENGTH 64U
130#endif
131
143#ifndef SIGV4_HASH_MAX_DIGEST_LENGTH
144 #define SIGV4_HASH_MAX_DIGEST_LENGTH 32U
145#endif
146
157#ifndef SIGV4_USE_CANONICAL_SUPPORT
158 #define SIGV4_USE_CANONICAL_SUPPORT 1
159#endif
160
179#ifndef LogError
180 #define LogError( message )
181#endif
182
201#ifndef LogWarn
202 #define LogWarn( message )
203#endif
204
223#ifndef LogInfo
224 #define LogInfo( message )
225#endif
226
245#ifndef LogDebug
246 #define LogDebug( message )
247#endif
248
249/* *INDENT-OFF* */
250#ifdef __cplusplus
251 }
252#endif
253/* *INDENT-ON* */
254
255#endif /* ifndef SIGV4_CONFIG_DEFAULTS_H_ */