Skip to content

Commit 2533c83

Browse files
authored
Add header guards to mbedtls_utils.h (#132)
1 parent 8ea5d0d commit 2533c83

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/dependency/3rdparty/mbedtls_utils/mbedtls_utils.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,18 @@
2525
* @brief Helper functions originating from mbedTLS.
2626
*/
2727

28+
#ifndef _MBEDTLS_UTILS_H_
29+
#define _MBEDTLS_UTILS_H_
30+
2831
/* Standard includes. */
2932
#include <string.h>
3033

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3140
/*-----------------------------------------------------------*/
3241

3342
/**
@@ -71,3 +80,11 @@ int convert_pem_to_der( const unsigned char * pucInput,
7180
int PKI_RSA_RSASSA_PKCS1_v15_Encode( const unsigned char * hash,
7281
size_t dst_len,
7382
unsigned char * dst );
83+
84+
/* *INDENT-OFF* */
85+
#ifdef __cplusplus
86+
}
87+
#endif
88+
/* *INDENT-ON* */
89+
90+
#endif /* ifndef _MBEDTLS_UTILS_H_ */

0 commit comments

Comments
 (0)