os_port.h File Reference

Trick the axtls code into building within our build environment. More...

#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <byteswap.h>

Go to the source code of this file.

Defines

#define STDCALL
#define EXP_FUNC
#define TTY_FLUSH()
#define abort()   assert ( 0 )
 We can't actually abort, since we are effectively a kernel.
#define CONFIG_SSL_CERT_VERIFICATION   1
#define CONFIG_SSL_MAX_CERTS   1
#define CONFIG_X509_MAX_CA_CERTS   1
#define CONFIG_SSL_EXPIRY_TIME   24
#define CONFIG_SSL_ENABLE_CLIENT   1
#define CONFIG_BIGINT_CLASSICAL   1

Typedefs

typedef void FILE

Functions

static void close (int fd __unused)
 crypto_misc.c has a bad ifdef
static FILEfopen (const char *filename __unused, const char *mode __unused)
static int fseek (FILE *stream __unused, long offset __unused, int whence __unused)
static long ftell (FILE *stream __unused)
static size_t fread (void *ptr __unused, size_t size __unused, size_t nmemb __unused, FILE *stream __unused)
static int fclose (FILE *stream __unused)


Detailed Description

Trick the axtls code into building within our build environment.

Definition in file os_port.h.


Define Documentation

#define STDCALL

Definition at line 17 of file os_port.h.

#define EXP_FUNC

Definition at line 18 of file os_port.h.

 
#define TTY_FLUSH (  ) 

Definition at line 19 of file os_port.h.

 
#define abort (  )     assert ( 0 )

We can't actually abort, since we are effectively a kernel.

..

Definition at line 22 of file os_port.h.

Referenced by alloc(), bi_depermanent(), bi_free(), bi_permanent(), and bi_terminate().

#define CONFIG_SSL_CERT_VERIFICATION   1

Definition at line 54 of file os_port.h.

#define CONFIG_SSL_MAX_CERTS   1

Definition at line 55 of file os_port.h.

#define CONFIG_X509_MAX_CA_CERTS   1

Definition at line 56 of file os_port.h.

#define CONFIG_SSL_EXPIRY_TIME   24

Definition at line 57 of file os_port.h.

#define CONFIG_SSL_ENABLE_CLIENT   1

Definition at line 58 of file os_port.h.

#define CONFIG_BIGINT_CLASSICAL   1

Definition at line 59 of file os_port.h.


Typedef Documentation

typedef void FILE

Definition at line 29 of file os_port.h.


Function Documentation

static void close ( int fd  __unused  )  [inline, static]

crypto_misc.c has a bad ifdef

Definition at line 25 of file os_port.h.

00025                                              {
00026         /* Do nothing */
00027 }

static FILE* fopen ( const char *filename  __unused,
const char *mode  __unused 
) [inline, static]

Definition at line 31 of file os_port.h.

References NULL.

00032                                                          {
00033         return NULL;
00034 }

static int fseek ( FILE *stream  __unused,
long offset  __unused,
int whence  __unused 
) [inline, static]

Definition at line 36 of file os_port.h.

00037                                                 {
00038         return -1;
00039 }

static long ftell ( FILE *stream  __unused  )  [inline, static]

Definition at line 41 of file os_port.h.

00041                                                    {
00042         return -1;
00043 }

static size_t fread ( void *ptr  __unused,
size_t size  __unused,
size_t nmemb  __unused,
FILE *stream  __unused 
) [inline, static]

Definition at line 45 of file os_port.h.

00046                                                                             {
00047         return -1;
00048 }

static int fclose ( FILE *stream  __unused  )  [inline, static]

Definition at line 50 of file os_port.h.

00050                                                    {
00051         return -1;
00052 }


Generated on Tue Apr 6 20:01:15 2010 for gPXE by  doxygen 1.5.7.1