4 * Trick the axtls code into building within our build environment.
7 #ifndef HEADER_OS_PORT_H
8 #define HEADER_OS_PORT_H
21 /** We can't actually abort, since we are effectively a kernel... */
22 #define abort() assert ( 0 )
24 /** crypto_misc.c has a bad #ifdef */
25 static inline void close ( int fd __unused
) {
31 static inline FILE * fopen ( const char *filename __unused
,
32 const char *mode __unused
) {
36 static inline int fseek ( FILE *stream __unused
, long offset __unused
,
37 int whence __unused
) {
41 static inline long ftell ( FILE *stream __unused
) {
45 static inline size_t fread ( void *ptr __unused
, size_t size __unused
,
46 size_t nmemb __unused
, FILE *stream __unused
) {
50 static inline int fclose ( FILE *stream __unused
) {
54 #define CONFIG_SSL_CERT_VERIFICATION 1
55 #define CONFIG_SSL_MAX_CERTS 1
56 #define CONFIG_X509_MAX_CA_CERTS 1
57 #define CONFIG_SSL_EXPIRY_TIME 24
58 #define CONFIG_SSL_ENABLE_CLIENT 1
59 #define CONFIG_BIGINT_CLASSICAL 1