GNU libmicrohttpd 1.0.1
Loading...
Searching...
No Matches
MHD_NonceNc Struct Reference

#include </builddir/build/BUILD/libmicrohttpd-1.0.1-build/libmicrohttpd-1.0.1/src/microhttpd/internal.h>

Data Fields

uint32_t nc
 
uint64_t nmask
 
char nonce [MAX_DIGEST_NONCE_LENGTH+1]
 

Detailed Description

A structure representing the internal holder of the nonce-nc map.

Definition at line 276 of file internal.h.

Field Documentation

◆ nc

uint32_t MHD_NonceNc::nc

Nonce counter, a value that increases for each subsequent request for the same nonce. Matches the largest last received 'nc' value. This 'nc' value was already used by the client.

Definition at line 285 of file internal.h.

Referenced by calculate_add_nonce(), check_nonce_nc(), and is_slot_available().

◆ nmask

uint64_t MHD_NonceNc::nmask

Bitmask over the previous 64 nonce counter values (down to to nc-64). Used to allow out-of-order 'nc'. If bit in the bitmask is set to one, then this 'nc' value was already used by the client.

Definition at line 293 of file internal.h.

Referenced by calculate_add_nonce(), and check_nonce_nc().

◆ nonce

char MHD_NonceNc::nonce[MAX_DIGEST_NONCE_LENGTH+1]

Nonce value

Definition at line 298 of file internal.h.

Referenced by calculate_add_nonce(), calculate_add_nonce_with_retry(), check_nonce_nc(), and is_slot_available().


The documentation for this struct was generated from the following file: