|
57 | 57 | #if OPENSSL_VERSION_NUMBER >= 0x10101000L |
58 | 58 | #include <openssl/cmac.h> |
59 | 59 | #endif |
| 60 | +#include <openssl/pkcs12.h> |
60 | 61 |
|
61 | 62 | #include <wolfssl/options.h> |
62 | 63 | #include <wolfssl/wolfcrypt/hash.h> |
|
73 | 74 | #include <wolfssl/wolfcrypt/asn_public.h> |
74 | 75 | #include <wolfssl/wolfcrypt/ecc.h> |
75 | 76 | #include <wolfssl/wolfcrypt/random.h> |
| 77 | +#include <wolfssl/wolfcrypt/pwdbased.h> |
76 | 78 |
|
77 | 79 | #include <wolfengine/we_openssl_bc.h> |
78 | 80 |
|
79 | 81 | #include <wolfengine/we_logging.h> |
80 | 82 |
|
| 83 | +#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) |
| 84 | + /* Function is a printf style function. Pretend parameter is string literal. |
| 85 | + * |
| 86 | + * @param s [in] Index of string literal. Index from 1. |
| 87 | + * @param v [in] Index of first argument to check. 0 means don't. |
| 88 | + */ |
| 89 | + #define WE_PRINTF_FUNC(s, v) __attribute__((__format__ (__printf__, s, v))) |
| 90 | +#else |
| 91 | + #define WE_PRINTF_FUNC(s, v) |
| 92 | +#endif |
| 93 | + |
81 | 94 | #if defined(HAVE_FIPS) || defined(HAVE_FIPS_VERSION) |
82 | 95 | /* |
83 | 96 | * Global FIPS checks flag. |
@@ -290,6 +303,14 @@ extern EVP_PKEY_METHOD *we_ec_p521_method; |
290 | 303 | int we_init_ecc_meths(void); |
291 | 304 | int we_init_ec_key_meths(void); |
292 | 305 |
|
| 306 | +/* |
| 307 | + * PBE method |
| 308 | + */ |
| 309 | + |
| 310 | +#ifdef WE_HAVE_PBE |
| 311 | +int we_init_pbe_keygen(void); |
| 312 | +#endif |
| 313 | + |
293 | 314 | int wolfengine_bind(ENGINE *e, const char *id); |
294 | 315 |
|
295 | 316 | #endif /* INTERNAL_H */ |
0 commit comments