Skip to content

Commit 9f511d5

Browse files
authored
Update CHANGELOG, version numbers, and add C++ header guards (#109)
* Update CHANGELOG, version numbers, and add C++ header guards * Attach PRs to updates * Update memory stats * Add md to lexicon.txt
1 parent 4c896b9 commit 9f511d5

File tree

47 files changed

+113
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+113
-45
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ jobs:
123123
uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main
124124
with:
125125
config: .github/memory_statistics_config.json
126-
check_against: docs/doxygen/include/size_table.html
126+
check_against: docs/doxygen/include/size_table.md

.github/workflows/memory_statistics.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
uses: actions/upload-artifact@v2
2020
with:
2121
name: size_table
22-
path: size_table.html
22+
path: size_table.md

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog for coreHTTP Client Library
22

3+
## v2.0.2 (July 2021)
4+
5+
### Updates
6+
7+
- [#109](https://github.com/FreeRTOS/coreHTTP/pull/109) Add C++ header guards
8+
- [#106](https://github.com/FreeRTOS/coreHTTP/pull/106) Update case-insensitive compare function for header-field parser
9+
- [#104](https://github.com/FreeRTOS/coreHTTP/pull/104) Update CBMC proofs to work with the latest version of CBMC
10+
311
## v2.0.1 (February 2021)
412

513
### Other

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ score over 8. This library has also undergone both static code analysis from
1313
safety and data structure invariance through the
1414
[CBMC automated reasoning tool](https://www.cprover.org/cbmc/).
1515

16-
See memory requirements for this library [here](https://docs.aws.amazon.com/embedded-csdk/202103.00/lib-ref/libraries/standard/coreHTTP/docs/doxygen/output/html/index.html#http_memory_requirements).
16+
See memory requirements for this library [here](./docs/doxygen/include/size_table.md).
1717

1818
**coreHTTP v2.0.0 [source code](https://github.com/FreeRTOS/coreHTTP/tree/v2.0.0/source) is part of the [FreeRTOS 202012.00 LTS](https://github.com/FreeRTOS/FreeRTOS-LTS/tree/202012.00-LTS) release.**
1919

@@ -82,8 +82,19 @@ The AWS IoT Device SDK for Embedded C repository contains demos of using the HTT
8282
library [here](https://github.com/aws/aws-iot-device-sdk-embedded-C/tree/main/demos/http)
8383
on a POSIX platform. These can be used as reference examples for the library API.
8484

85-
## Generating documentation
85+
## Documentation
8686

87+
### Existing Documentation
88+
For pre-generated documentation, please see the documentation linked in the locations below:
89+
90+
| Location |
91+
| :-: |
92+
| [AWS IoT Device SDK for Embedded C](https://github.com/aws/aws-iot-device-sdk-embedded-C#releases-and-documentation) |
93+
| [FreeRTOS.org](https://freertos.org/Documentation/api-ref/coreHTTP/docs/doxygen/output/html/index.html) |
94+
95+
Note that the latest included version of coreHTTP may differ across repositories.
96+
97+
### Generating Documentation
8798
The Doxygen references were created using Doxygen version 1.8.20. To generate the
8899
Doxygen pages, please run the following command from the root of this repository:
89100

docs/doxygen/config.doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "coreHTTP"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "v2.0.1"
41+
PROJECT_NUMBER = "v2.0.2"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

docs/doxygen/pages.dox

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Feature of HTTP/1.1 not supported in this library:
1717
@section http_memory_requirements Memory Requirements
1818
@brief Memory requirements of the HTTP Client library.
1919

20-
@include{doc} size_table.html
20+
@include{doc} size_table.md
2121
*/
2222

2323
/**

lexicon.txt

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ loginfo
128128
logwarn
129129
mainpage
130130
malloc
131+
md
131132
memcpy
132133
memmove
133134
methodlen

manifest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name : "coreHTTP"
2-
version: "v2.0.1"
2+
version: "v2.0.2"
33
description: |
44
"Client implementation of the HTTP/1.1 specification for embedded devices.\n"
55
dependencies:

source/core_http_client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

source/include/core_http_client.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -31,6 +31,12 @@
3131
#include <stdint.h>
3232
#include <stddef.h>
3333

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3440
/* HTTP_DO_NOT_USE_CUSTOM_CONFIG allows building the HTTP Client library
3541
* without a config file. If a config file is provided, the
3642
* HTTP_DO_NOT_USE_CUSTOM_CONFIG macro must not be defined.
@@ -893,4 +899,10 @@ HTTPStatus_t HTTPClient_ReadHeader( const HTTPResponse_t * pResponse,
893899
const char * HTTPClient_strerror( HTTPStatus_t status );
894900
/* @[declare_httpclient_strerror] */
895901

902+
/* *INDENT-OFF* */
903+
#ifdef __cplusplus
904+
}
905+
#endif
906+
/* *INDENT-ON* */
907+
896908
#endif /* ifndef CORE_HTTP_CLIENT_H_ */

source/include/core_http_client_private.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -31,6 +31,12 @@
3131
/* Third-party http-parser include. */
3232
#include "http_parser.h"
3333

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3440
/**
3541
* @brief The HTTP protocol version of this library is HTTP/1.1.
3642
*/
@@ -267,4 +273,10 @@ typedef struct HTTPParsingContext
267273
size_t lastHeaderValueLen; /**< The length of the last value field parsed. */
268274
} HTTPParsingContext_t;
269275

276+
/* *INDENT-OFF* */
277+
#ifdef __cplusplus
278+
}
279+
#endif
280+
/* *INDENT-ON* */
281+
270282
#endif /* ifndef CORE_HTTP_CLIENT_PRIVATE_H_ */

source/include/core_http_config_defaults.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -35,6 +35,12 @@
3535
#ifndef CORE_HTTP_CONFIG_DEFAULTS_
3636
#define CORE_HTTP_CONFIG_DEFAULTS_
3737

38+
/* *INDENT-OFF* */
39+
#ifdef __cplusplus
40+
extern "C" {
41+
#endif
42+
/* *INDENT-ON* */
43+
3844
/**
3945
* @brief Maximum size, in bytes, of headers allowed from the server.
4046
*
@@ -191,4 +197,10 @@
191197
#define LogDebug( message )
192198
#endif
193199

200+
/* *INDENT-OFF* */
201+
#ifdef __cplusplus
202+
}
203+
#endif
204+
/* *INDENT-ON* */
205+
194206
#endif /* ifndef CORE_HTTP_CONFIG_DEFAULTS_ */

source/interface/transport_interface.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -31,6 +31,12 @@
3131
#include <stdint.h>
3232
#include <stddef.h>
3333

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3440
/**
3541
* @transportpage
3642
* @brief The transport interface definition.
@@ -250,4 +256,10 @@ typedef struct TransportInterface
250256
} TransportInterface_t;
251257
/* @[define_transportinterface] */
252258

259+
/* *INDENT-OFF* */
260+
#ifdef __cplusplus
261+
}
262+
#endif
263+
/* *INDENT-ON* */
264+
253265
#endif /* ifndef TRANSPORT_INTERFACE_H_ */

test/cbmc/include/callback_stubs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/include/core_http_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/include/get_time_stub.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/include/http_cbmc_state.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/include/transport_interface_stubs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_AddHeader/HTTPClient_AddHeader_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_AddRangeHeader/HTTPClient_AddRangeHeader_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_InitializeRequestHeaders/HTTPClient_InitializeRequestHeaders_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_ReadHeader/HTTPClient_ReadHeader_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_Send/HTTPClient_Send_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/HTTPClient_strerror/HTTPClient_strerror_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/findHeaderFieldParserCallback/findHeaderFieldParserCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/findHeaderOnHeaderCompleteCallback/findHeaderOnHeaderCompleteCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/findHeaderValueParserCallback/findHeaderValueParserCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnBodyCallback/httpParserOnBodyCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnHeaderFieldCallback/httpParserOnHeaderFieldCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnHeaderValueCallback/httpParserOnHeaderValueCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnHeadersCompleteCallback/httpParserOnHeadersCompleteCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnMessageBeginCallback/httpParserOnMessageBeginCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnMessageCompleteCallback/httpParserOnMessageCompleteCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/httpParserOnStatusCallback/httpParserOnStatusCallback_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/sources/http_cbmc_state.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/HTTPClient_ReadHeader_http_parser_execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/HTTPClient_Send_http_parser_execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/callback_stubs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreHTTP v2.0.1
2+
* coreHTTP v2.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)