Skip to content

Commit e0ef179

Browse files
authored
Merge pull request #10375 from gilles-peskine-arm/threading_internal.h-3.6
Backport 3.6: Create threading_internal.h
2 parents 54bf8ad + 9f7ac03 commit e0ef179

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

library/threading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#if defined(MBEDTLS_THREADING_C)
1919

20-
#include "mbedtls/threading.h"
20+
#include "threading_internal.h"
2121

2222
#if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_PLATFORM_GMTIME_R_ALT)
2323

library/threading_internal.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* \file threading_internal.h
3+
*
4+
* \brief Threading interfaces used by the test framework
5+
*/
6+
/*
7+
* Copyright The Mbed TLS Contributors
8+
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9+
*/
10+
11+
#ifndef MBEDTLS_THREADING_INTERNAL_H
12+
#define MBEDTLS_THREADING_INTERNAL_H
13+
14+
#include "common.h"
15+
16+
#include <mbedtls/threading.h>
17+
18+
/* A version number for the internal threading interface.
19+
* This is meant to allow the framework to remain compatible with
20+
* multiple versions, to facilitate transitions.
21+
*
22+
* Conventionally, this is the Mbed TLS version number when the
23+
* threading interface was last changed in a way that may impact the
24+
* test framework, with the lower byte incremented as necessary
25+
* if multiple changes happened between releases. */
26+
#define MBEDTLS_THREADING_INTERNAL_VERSION 0x03060000
27+
28+
#endif /* MBEDTLS_THREADING_INTERNAL_H */

0 commit comments

Comments
 (0)