All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
soh.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 #ifndef _FR_SOH_H
17 #define _FR_SOH_H
18 /**
19  * $Id: adcbd5fdceef949ad746ae7caa1532794f46d249 $
20  *
21  * @file include/soh.h
22  * @brief Microsoft SoH support
23  *
24  * @copyright 2010 Phil Mayers <p.mayers@imperial.ac.uk>
25  */
26 RCSIDH(soh_h, "$Id: adcbd5fdceef949ad746ae7caa1532794f46d249 $")
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 int soh_verify(REQUEST *request, uint8_t const *data, unsigned int data_len) CC_HINT(nonnull);
33 uint16_t soh_pull_be_16(uint8_t const *p);
34 uint32_t soh_pull_be_24(uint8_t const *p);
35 uint32_t soh_pull_be_32(uint8_t const *p);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* _FR_SOH_H */
#define RCSIDH(h, id)
Definition: build.h:136
#define CC_HINT(_x)
Definition: build.h:71
uint32_t soh_pull_be_32(uint8_t const *p)
Read big-endian 4-byte unsigned from p.
Definition: soh.c:118
uint32_t soh_pull_be_24(uint8_t const *p)
Read big-endian 3-byte unsigned from p.
Definition: soh.c:104
uint8_t data[]
Definition: eap_pwd.h:625
int soh_verify(REQUEST *request, uint8_t const *data, unsigned int data_len) CC_HINT(nonnull)
Parse the MS-SOH response in data and update sohvp.
Definition: soh.c:385
uint16_t soh_pull_be_16(uint8_t const *p)
Read big-endian 2-byte unsigned from p.
Definition: soh.c:91