Skip to content

Commit

Permalink
ECCX08Config: allow re-enabling ECC utilities checking if has been in…
Browse files Browse the repository at this point in the history
…cluded from sketch
  • Loading branch information
pennam committed Jul 17, 2024
1 parent 4494969 commit 6dd76bb
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/ArduinoECCX08Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,25 @@
#ifndef ARDUINO_ECCX08_CONFIG_H
#define ARDUINO_ECCX08_CONFIG_H

#define ECCX08_DISABLE_ASN1
#define ECCX08_DISABLE_CSR
#define ECCX08_DISABLE_JWS
#define ECCX08_DISABLE_SSC
#define ECCX08_DISABLE_PEM

#if defined __has_include
/* Disable ECCX08 SSC if not explicitly included */
#if !__has_include (<utility/ECCX08SelfSignedCert.h>)
#define ECCX08_DISABLE_ASN1
#define ECCX08_DISABLE_SSC
#endif
/* Disable ECCX08 JWS support if not explicitly included */
#if !__has_include (<utility/ECCX08JWS.h>)
#define ECCX08_DISABLE_JWS
#endif
/* Disable ECCX08 CSR support if not explicitly included */
#if !__has_include (<utility/ECCX08CSR.h>)
#define ECCX08_DISABLE_CSR
#endif
/* Disable ECCX08 PEM support if not explicitly included */
#if !__has_include (<utility/PEMUtils.h>)
#define ECCX08_DISABLE_PEM
#endif
#endif

#endif /* ARDUINO_ECCX08_CONFIG_H */

0 comments on commit 6dd76bb

Please sign in to comment.