summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/Security/TrustCentre/include/private/tcKeyEstablishHandler.h
blob: 975e38f46306d38af8173528b1390c2f587dd9d4 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**************************************************************************//**
  \file tcKeyEstablishHandler.h
  
  \brief Trust Centre end to end key establishment routine header file.

  \author
    Atmel Corporation: http://www.atmel.com \n
    Support email: avr@atmel.com

  Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
  Licensed under Atmel's Limited License Agreement (BitCloudTM).

  \internal
    History:
      2008.01.17 - ALuzhetsky created.
******************************************************************************/
#ifndef _TCKEYESTABLISHHANDLERH
#define _TCKEYESTABLISHHANDLERH

#ifdef _LINK_SECURITY_ 
/******************************************************************************
                             Includes section.
******************************************************************************/
#include <aps.h>
#include <types.h>
#include <tcKeyEstablish.h>

/******************************************************************************
                             Definitions section.
******************************************************************************/


/******************************************************************************
                             Types section.
******************************************************************************/
/**************************************************************************//**
  \brief TBD.

  TBD
******************************************************************************/
typedef enum
{
  TC_KEY_ESTABLISH_OBJ_STATE_IDLE,
  TC_KEY_ESTABLISH_OBJ_STATE_TRANSPORT_KEY_POSTED,
  TC_KEY_ESTABLISH_OBJ_STATE_FIRST_TRANSPORT_KEY_EXECUTING,
  TC_KEY_ESTABLISH_OBJ_STATE_SECOND_TRANSPORT_KEY_EXECUTING,
} TcKeyEstablishHandlerObjState_t;

/**************************************************************************//**
  \brief TBD.

  TBD
******************************************************************************/
typedef struct
{
  TC_KeyEstablishObj_t *keyEstablishObj;
  uint8_t              maxRequests;
} TcKeyEstablishHandlerMem_t;

/******************************************************************************
                             Functions prototypes section.
******************************************************************************/
/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
void tcKeyEstablishTaskHandler(void);

/**************************************************************************//**
  \brief TBD.
  
  \param TBD.
  \return TBD.
******************************************************************************/
void tcResetKeyEstablishHandler(void);

#endif // _LINK_SECURITY_ 

#endif //_TCKEYESTABLISHHANDLERH
// eof tcKeyEstablishHandler.h