diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-02-09 18:08:47 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-02-09 18:08:47 -0800 |
commit | f2f897a1762fab84d2905f32b1c15dd7b42abb56 (patch) | |
tree | a38f51d3f1fcbf44afddb4736d549c12eaf491be /gpxe/src/include/gpxe/chap.h | |
parent | 72d2959272b4616f17a97667e6dfa9d06bf109a3 (diff) | |
download | syslinux-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/include/gpxe/chap.h')
-rw-r--r-- | gpxe/src/include/gpxe/chap.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/gpxe/src/include/gpxe/chap.h b/gpxe/src/include/gpxe/chap.h deleted file mode 100644 index e86ede35..00000000 --- a/gpxe/src/include/gpxe/chap.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef _GPXE_CHAP_H -#define _GPXE_CHAP_H - -/** @file - * - * CHAP protocol - * - */ - -FILE_LICENCE ( GPL2_OR_LATER ); - -#include <stdint.h> -#include <gpxe/md5.h> - -struct digest_algorithm; - -/** A CHAP response */ -struct chap_response { - /** Digest algorithm used for the response */ - struct digest_algorithm *digest; - /** Context used by the digest algorithm */ - uint8_t *digest_context; - /** CHAP response */ - uint8_t *response; - /** Length of CHAP response */ - size_t response_len; -}; - -extern int chap_init ( struct chap_response *chap, - struct digest_algorithm *digest ); -extern void chap_update ( struct chap_response *chap, const void *data, - size_t len ); -extern void chap_respond ( struct chap_response *chap ); -extern void chap_finish ( struct chap_response *chap ); - -/** - * Add identifier data to the CHAP challenge - * - * @v chap CHAP response - * @v identifier CHAP identifier - * - * The CHAP identifier is the first byte of the CHAP challenge. This - * function is a notational convenience for calling chap_update() for - * the identifier byte. - */ -static inline void chap_set_identifier ( struct chap_response *chap, - unsigned int identifier ) { - uint8_t ident_byte = identifier; - - chap_update ( chap, &ident_byte, sizeof ( ident_byte ) ); -} - -#endif /* _GPXE_CHAP_H */ |