summaryrefslogtreecommitdiff
path: root/gpxe/src/crypto/axtls/os_port.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
commitf2f897a1762fab84d2905f32b1c15dd7b42abb56 (patch)
treea38f51d3f1fcbf44afddb4736d549c12eaf491be /gpxe/src/crypto/axtls/os_port.h
parent72d2959272b4616f17a97667e6dfa9d06bf109a3 (diff)
downloadsyslinux-f2f897a1762fab84d2905f32b1c15dd7b42abb56.tar.gz
gpxe: delete long since obsolete snapshot of gPXE
gPXE has been deprecated in favor of iPXE for many, many years now. It is much better than users get it directly from the iPXE project, since we should no longer need any special modifications for Syslinux use. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gpxe/src/crypto/axtls/os_port.h')
-rw-r--r--gpxe/src/crypto/axtls/os_port.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/gpxe/src/crypto/axtls/os_port.h b/gpxe/src/crypto/axtls/os_port.h
deleted file mode 100644
index babdbfad..00000000
--- a/gpxe/src/crypto/axtls/os_port.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * @file os_port.h
- *
- * Trick the axtls code into building within our build environment.
- */
-
-#ifndef HEADER_OS_PORT_H
-#define HEADER_OS_PORT_H
-
-#include <stdint.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <time.h>
-#include <sys/time.h>
-#include <byteswap.h>
-
-#define STDCALL
-#define EXP_FUNC
-#define TTY_FLUSH()
-
-/** We can't actually abort, since we are effectively a kernel... */
-#define abort() assert ( 0 )
-
-/** crypto_misc.c has a bad #ifdef */
-static inline void close ( int fd __unused ) {
- /* Do nothing */
-}
-
-typedef void FILE;
-
-static inline FILE * fopen ( const char *filename __unused,
- const char *mode __unused ) {
- return NULL;
-}
-
-static inline int fseek ( FILE *stream __unused, long offset __unused,
- int whence __unused ) {
- return -1;
-}
-
-static inline long ftell ( FILE *stream __unused ) {
- return -1;
-}
-
-static inline size_t fread ( void *ptr __unused, size_t size __unused,
- size_t nmemb __unused, FILE *stream __unused ) {
- return -1;
-}
-
-static inline int fclose ( FILE *stream __unused ) {
- return -1;
-}
-
-#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
-
-#endif