|
| 1 | +/* |
| 2 | + This file is part of the ArduinoECCX08 library. |
| 3 | + Copyright (c) 2023 Arduino SA. All rights reserved. |
| 4 | +
|
| 5 | + This library is free software; you can redistribute it and/or |
| 6 | + modify it under the terms of the GNU Lesser General Public |
| 7 | + License as published by the Free Software Foundation; either |
| 8 | + version 2.1 of the License, or (at your option) any later version. |
| 9 | +
|
| 10 | + This library is distributed in the hope that it will be useful, |
| 11 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | + Lesser General Public License for more details. |
| 14 | +
|
| 15 | + You should have received a copy of the GNU Lesser General Public |
| 16 | + License along with this library; if not, write to the Free Software |
| 17 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | +*/ |
| 19 | + |
| 20 | +#ifndef _ECCX08_UTILS_CONFIG_H_ |
| 21 | +#define _ECCX08_UTILS_CONFIG_H_ |
| 22 | + |
| 23 | +#if defined __has_include |
| 24 | + #if !__has_include ("ArduinoIoTCloud.h") |
| 25 | + #define ECCX08_ENABLE_ASN1 1 |
| 26 | + #define ECCX08_ENABLE_CSR 1 |
| 27 | + #define ECCX08_ENABLE_JWS 1 |
| 28 | + #define ECCX08_ENABLE_SSC 1 |
| 29 | + #define ECCX08_ENABLE_PEM 1 |
| 30 | + #endif |
| 31 | +#else |
| 32 | + #define ECCX08_ENABLE_ASN1 1 |
| 33 | + #define ECCX08_ENABLE_CSR 1 |
| 34 | + #define ECCX08_ENABLE_JWS 1 |
| 35 | + #define ECCX08_ENABLE_SSC 1 |
| 36 | + #define ECCX08_ENABLE_PEM 1 |
| 37 | +#endif |
| 38 | + |
| 39 | +#endif |
0 commit comments