tinydtls  0.8.6
state.h
Go to the documentation of this file.
1 /*******************************************************************************
2  *
3  * Copyright (c) 2011, 2012, 2013, 2014, 2015 Olaf Bergmann (TZI) and others.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
7  *
8  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
9  * and the Eclipse Distribution License is available at
10  * http://www.eclipse.org/org/documents/edl-v10.php.
11  *
12  * Contributors:
13  * Olaf Bergmann - initial API and implementation
14  * Hauke Mehrtens - memory optimization, ECC integration
15  *
16  *******************************************************************************/
17 
23 #ifndef _DTLS_STATE_H_
24 #define _DTLS_STATE_H_
25 
26 #include <sys/types.h>
27 #include <stdint.h>
28 
29 #include "global.h"
30 #include "hmac.h"
31 
32 typedef enum {
37  /* client states */
40 
44 } dtls_state_t;
45 
46 typedef struct {
47  uint16_t mseq_s;
48  uint16_t mseq_r;
51  /* FIXME: dtls_security_parameters_t pending_config; */
52 
53  /* temporary storage for the final handshake hash */
56 #endif /* _DTLS_STATE_H_ */
dtls_state_t
Definition: state.h:32
dtls_sha256_ctx dtls_hash_ctx
Definition: hmac.h:31
dtls_hash_ctx hs_hash
Definition: state.h:54
uint16_t mseq_r
Definition: state.h:48
uint16_t mseq_s
Definition: state.h:47