All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
soh.h File Reference

Microsoft SoH support. More...

Go to the source code of this file.

Functions

uint16_t soh_pull_be_16 (uint8_t const *p)
 Read big-endian 2-byte unsigned from p. More...
 
uint32_t soh_pull_be_24 (uint8_t const *p)
 Read big-endian 3-byte unsigned from p. More...
 
uint32_t soh_pull_be_32 (uint8_t const *p)
 Read big-endian 4-byte unsigned from p. More...
 
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. More...
 

Detailed Description

Microsoft SoH support.

Id:
adcbd5fdceef949ad746ae7caa1532794f46d249

Definition in file soh.h.

Function Documentation

uint16_t soh_pull_be_16 ( uint8_t const *  p)

Read big-endian 2-byte unsigned from p.

caller must ensure enough data exists at "p"

Definition at line 91 of file soh.c.

+ Here is the caller graph for this function:

uint32_t soh_pull_be_24 ( uint8_t const *  p)

Read big-endian 3-byte unsigned from p.

caller must ensure enough data exists at "p"

Definition at line 104 of file soh.c.

+ Here is the caller graph for this function:

uint32_t soh_pull_be_32 ( uint8_t const *  p)

Read big-endian 4-byte unsigned from p.

caller must ensure enough data exists at "p"

Definition at line 118 of file soh.c.

+ Here is the caller graph for this function:

int soh_verify ( REQUEST request,
uint8_t const *  data,
unsigned int  data_len 
)

Parse the MS-SOH response in data and update sohvp.

Note that sohvp might still have been updated in event of a failure.

Parameters
requestCurrent request
dataMS-SOH blob
data_lenlength of MS-SOH blob
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 385 of file soh.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: