blob: 1ba92954259e34224247fc981deb3cf9d909363a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef QUEUE_T_H
#define QUEUE_T_H
#define NO_TYPE_SET 0
#define NO_LENGTH_SET 0
/* type: NO_TYPE_SET, SHA1, SHA224, SHA256, SHA384, SHA512
* msg_digest_length: SHA1_HASH_LENGTH, SHA224_HASH_LENGHT, SHA256_HASH_LENGTH, SHA384_HASH_LENGTH, SHA512_HASH_LENGTH
* */
typedef struct test_t {
unsigned int type;
unsigned char *msg;
unsigned int msg_length;
unsigned char *msg_digest;
unsigned int msg_digest_length;
struct test_t *next;
} test_t;
test_t new_test_t(void);
typedef struct queue_t {
unsigned int size;
unsigned int passed;
unsigned int failed;
test_t *head;
test_t *tail;
} queue_t;
queue_t new_queue_t(void);
void push(queue_t * queue, test_t test);
#endif
|