Skip to content

Commit fd0a6b3

Browse files
committed
Adapt BearSSL client profile init to allow profile configuration from ArduinoIoTCloud to ArduinoBearSSL library
- remove unnecessary include - rename - add include guards - move into tls folder
1 parent d9621ea commit fd0a6b3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/tls/profile/aiotc_profile.c renamed to src/tls/BearSSLClientProfile.h

+10-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@
2222
* SOFTWARE.
2323
*/
2424

25+
#ifndef _BEAR_SSL_CLIENT_PROFILE_H_
26+
#define _BEAR_SSL_CLIENT_PROFILE_H_
27+
28+
/******************************************************************************
29+
* INCLUDE
30+
******************************************************************************/
31+
2532
#include <AIoTC_Config.h>
2633
#ifdef BOARD_HAS_ECCX08
2734

28-
#include "../bearssl/inner.h"
29-
3035
/* see bearssl_ssl.h */
3136
void aiotc_client_profile_init(br_ssl_client_context *cc, br_x509_minimal_context *xc, const br_x509_trust_anchor *trust_anchors, size_t trust_anchors_num)
3237
{
@@ -99,3 +104,6 @@ void aiotc_client_profile_init(br_ssl_client_context *cc, br_x509_minimal_contex
99104
}
100105

101106
#endif /* #ifdef BOARD_HAS_ECCX08 */
107+
108+
#endif /* _BEAR_SSL_CLIENT_PROFILE_H_ */
109+

0 commit comments

Comments
 (0)