File tree 1 file changed +20
-5
lines changed
1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 18
18
#ifndef ARDUINO_ECCX08_CONFIG_H
19
19
#define ARDUINO_ECCX08_CONFIG_H
20
20
21
- #define ECCX08_DISABLE_ASN1
22
- #define ECCX08_DISABLE_CSR
23
- #define ECCX08_DISABLE_JWS
24
- #define ECCX08_DISABLE_SSC
25
- #define ECCX08_DISABLE_PEM
21
+
22
+ #if defined __has_include
23
+ /* Disable ECCX08 SSC if not explicitly included */
24
+ #if !__has_include (< utility /ECCX08SelfSignedCert .h > )
25
+ #define ECCX08_DISABLE_ASN1
26
+ #define ECCX08_DISABLE_SSC
27
+ #endif
28
+ /* Disable ECCX08 JWS support if not explicitly included */
29
+ #if !__has_include (< utility /ECCX08JWS .h > )
30
+ #define ECCX08_DISABLE_JWS
31
+ #endif
32
+ /* Disable ECCX08 CSR support if not explicitly included */
33
+ #if !__has_include (< utility /ECCX08CSR .h > )
34
+ #define ECCX08_DISABLE_CSR
35
+ #endif
36
+ /* Disable ECCX08 PEM support if not explicitly included */
37
+ #if !__has_include (< utility /PEMUtils .h > )
38
+ #define ECCX08_DISABLE_PEM
39
+ #endif
40
+ #endif
26
41
27
42
#endif /* ARDUINO_ECCX08_CONFIG_H */
You can’t perform that action at this time.
0 commit comments