blob: 7bfd68ca55f43bf753ccd300b09c1077d287e463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef CHALLENGE_H
#define CHALLENGE_H 1
#include <stdint.h>
/** challenge_t: This structure contains the pseudo-random challenge used for
* authentication.
*/
typedef struct challenge_t {
/** tv_sec as returned by gettimeofday */
uint32_t sec;
/** tv_usec as returned by gettimeofday + random value */
uint32_t usec_rnd;
/** random values */
uint32_t random[6];
} __attribute__ ((packed)) challenge_t;
#endif
|