Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C_sec2_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
#include "constants.pb-c.h"
S2SessionCmd0
S2SessionResp0
S2SessionCmd1
S2SessionResp1
Sec2Payload
_Sec2MsgType
S2SessionCmd0
S2SessionResp0
S2SessionCmd1
S2SessionResp1
Sec2Payload__PayloadCase
Sec2Payload
s2_session_cmd0__init(S2SessionCmd0 *);
s2_session_cmd0__get_packed_size(const S2SessionCmd0 *);
s2_session_cmd0__pack(const S2SessionCmd0 *, uint8_t *);
s2_session_cmd0__pack_to_buffer(const S2SessionCmd0 *, ProtobufCBuffer *);
s2_session_cmd0__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
s2_session_cmd0__free_unpacked(S2SessionCmd0 *, ProtobufCAllocator *);
s2_session_resp0__init(S2SessionResp0 *);
s2_session_resp0__get_packed_size(const S2SessionResp0 *);
s2_session_resp0__pack(const S2SessionResp0 *, uint8_t *);
s2_session_resp0__pack_to_buffer(const S2SessionResp0 *, ProtobufCBuffer *);
s2_session_resp0__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
s2_session_resp0__free_unpacked(S2SessionResp0 *, ProtobufCAllocator *);
s2_session_cmd1__init(S2SessionCmd1 *);
s2_session_cmd1__get_packed_size(const S2SessionCmd1 *);
s2_session_cmd1__pack(const S2SessionCmd1 *, uint8_t *);
s2_session_cmd1__pack_to_buffer(const S2SessionCmd1 *, ProtobufCBuffer *);
s2_session_cmd1__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
s2_session_cmd1__free_unpacked(S2SessionCmd1 *, ProtobufCAllocator *);
s2_session_resp1__init(S2SessionResp1 *);
s2_session_resp1__get_packed_size(const S2SessionResp1 *);
s2_session_resp1__pack(const S2SessionResp1 *, uint8_t *);
s2_session_resp1__pack_to_buffer(const S2SessionResp1 *, ProtobufCBuffer *);
s2_session_resp1__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
s2_session_resp1__free_unpacked(S2SessionResp1 *, ProtobufCAllocator *);
sec2_payload__init(Sec2Payload *);
sec2_payload__get_packed_size(const Sec2Payload *);
sec2_payload__pack(const Sec2Payload *, uint8_t *);
sec2_payload__pack_to_buffer(const Sec2Payload *, ProtobufCBuffer *);
sec2_payload__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
sec2_payload__free_unpacked(Sec2Payload *, ProtobufCAllocator *);
S2SessionCmd0_Closure
S2SessionResp0_Closure
S2SessionCmd1_Closure
S2SessionResp1_Closure
Sec2Payload_Closure
sec2_msg_type__descriptor;
s2_session_cmd0__descriptor;
s2_session_resp0__descriptor;
s2_session_cmd1__descriptor;
s2_session_resp1__descriptor;
sec2_payload__descriptor;
Files
ESP-IDF
components
app_trace
app_update
bootloader_support
bt
cmock
console
cxx
driver
efuse
esp_adc
esp_app_format
esp_bootloader_format
esp_coex
esp_common
esp_driver_ana_cmpr
esp_driver_cam
esp_driver_dac
esp_driver_gpio
esp_driver_gptimer
esp_driver_i2c
esp_driver_i2s
esp_driver_jpeg
esp_driver_ledc
esp_driver_mcpwm
esp_driver_parlio
esp_driver_pcnt
esp_driver_rmt
esp_driver_sdio
esp_driver_sdm
esp_driver_sdmmc
esp_driver_sdspi
esp_driver_spi
esp_driver_tsens
esp_driver_uart
esp_driver_usb_serial_jtag
esp_eth
esp_event
esp_gdbstub
esp_hid
esp_http_client
esp_http_server
esp_https_ota
esp_https_server
esp_hw_support
esp_lcd
esp_local_ctrl
esp_mm
esp_netif
esp_partition
esp_phy
esp_pm
esp_psram
esp_ringbuf
esp_rom
esp_security
esp_system
esp_timer
esp_vfs_console
esp_wifi
esp-tls
espcoredump
hal
heap
http_parser
ieee802154
log
mqtt
newlib
nvs_flash
nvs_sec_provider
openthread
perfmon
protobuf-c
protocomm
include
proto-c
src
pthread
rt
sdmmc
soc
spi_flash
spiffs
tcp_transport
ulp
unity
vfs
wear_levelling
wifi_provisioning
wpa_supplicant
xtensa
examples
lwIP
FreeRTOS
cJSON
mbedTLS
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/protocomm/proto-c/sec2.pb-c.h
 
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: sec2.proto */ #ifndef PROTOBUF_C_sec2_2eproto__INCLUDED #define PROTOBUF_C_sec2_2eproto__INCLUDED #include <protobuf-c/protobuf-c.h> PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. #elif 1004000 < PROTOBUF_C_MIN_COMPILER_VERSION # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. #endif #include "constants.pb-c.h" typedef struct S2SessionCmd0 S2SessionCmd0; typedef struct S2SessionResp0 S2SessionResp0; typedef struct S2SessionCmd1 S2SessionCmd1; typedef struct S2SessionResp1 S2SessionResp1; typedef struct Sec2Payload Sec2Payload; /* --- enums --- */ /* * A message must be of type Cmd0 / Cmd1 / Resp0 / Resp1 *//* ... */ typedef enum _Sec2MsgType { SEC2_MSG_TYPE__S2Session_Command0 = 0, SEC2_MSG_TYPE__S2Session_Response0 = 1, SEC2_MSG_TYPE__S2Session_Command1 = 2, SEC2_MSG_TYPE__S2Session_Response1 = 3 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC2_MSG_TYPE) }{ ... } Sec2MsgType; /* --- messages --- */ /* * Data structure of Session command0 packet *//* ... */ struct S2SessionCmd0 { ProtobufCMessage base; ProtobufCBinaryData client_username; ProtobufCBinaryData client_pubkey; }{ ... }; #define S2_SESSION_CMD0__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s2_session_cmd0__descriptor) \ , {0,NULL}, {0,NULL} }{...} ... /* * Data structure of Session response0 packet *//* ... */ struct S2SessionResp0 { ProtobufCMessage base; Status status; ProtobufCBinaryData device_pubkey; ProtobufCBinaryData device_salt; }{ ... }; #define S2_SESSION_RESP0__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s2_session_resp0__descriptor) \ , STATUS__Success, {0,NULL}, {0,NULL} }{...} ... /* * Data structure of Session command1 packet *//* ... */ struct S2SessionCmd1 { ProtobufCMessage base; ProtobufCBinaryData client_proof; }{ ... }; #define S2_SESSION_CMD1__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s2_session_cmd1__descriptor) \ , {0,NULL} }{...} ... /* * Data structure of Session response1 packet *//* ... */ struct S2SessionResp1 { ProtobufCMessage base; Status status; ProtobufCBinaryData device_proof; ProtobufCBinaryData device_nonce; }{ ... }; #define S2_SESSION_RESP1__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s2_session_resp1__descriptor) \ , STATUS__Success, {0,NULL}, {0,NULL} }{...} ... typedef enum { SEC2_PAYLOAD__PAYLOAD__NOT_SET = 0, SEC2_PAYLOAD__PAYLOAD_SC0 = 20, SEC2_PAYLOAD__PAYLOAD_SR0 = 21, SEC2_PAYLOAD__PAYLOAD_SC1 = 22, SEC2_PAYLOAD__PAYLOAD_SR1 = 23 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC2_PAYLOAD__PAYLOAD__CASE) }{ ... } Sec2Payload__PayloadCase; /* * Payload structure of session data *//* ... */ struct Sec2Payload { ProtobufCMessage base; /* *!< Type of message *//* ... */ Sec2MsgType msg; Sec2Payload__PayloadCase payload_case; union { /* *!< Payload data interpreted as Cmd0 *//* ... */ S2SessionCmd0 *sc0; /* *!< Payload data interpreted as Resp0 *//* ... */ S2SessionResp0 *sr0; /* *!< Payload data interpreted as Cmd1 *//* ... */ S2SessionCmd1 *sc1; /* *!< Payload data interpreted as Resp1 *//* ... */ S2SessionResp1 *sr1; }{ ... }; }{ ... }; #define SEC2_PAYLOAD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&sec2_payload__descriptor) \ , SEC2_MSG_TYPE__S2Session_Command0, SEC2_PAYLOAD__PAYLOAD__NOT_SET, {0} }{...} ... /* S2SessionCmd0 methods */ void s2_session_cmd0__init (S2SessionCmd0 *message); size_t s2_session_cmd0__get_packed_size (const S2SessionCmd0 *message); size_t s2_session_cmd0__pack (const S2SessionCmd0 *message, uint8_t *out); size_t s2_session_cmd0__pack_to_buffer (const S2SessionCmd0 *message, ProtobufCBuffer *buffer); S2SessionCmd0 * s2_session_cmd0__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s2_session_cmd0__free_unpacked (S2SessionCmd0 *message, ProtobufCAllocator *allocator); /* S2SessionResp0 methods */ void s2_session_resp0__init (S2SessionResp0 *message); size_t s2_session_resp0__get_packed_size (const S2SessionResp0 *message); size_t s2_session_resp0__pack (const S2SessionResp0 *message, uint8_t *out); size_t s2_session_resp0__pack_to_buffer (const S2SessionResp0 *message, ProtobufCBuffer *buffer); S2SessionResp0 * s2_session_resp0__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s2_session_resp0__free_unpacked (S2SessionResp0 *message, ProtobufCAllocator *allocator); /* S2SessionCmd1 methods */ void s2_session_cmd1__init (S2SessionCmd1 *message); size_t s2_session_cmd1__get_packed_size (const S2SessionCmd1 *message); size_t s2_session_cmd1__pack (const S2SessionCmd1 *message, uint8_t *out); size_t s2_session_cmd1__pack_to_buffer (const S2SessionCmd1 *message, ProtobufCBuffer *buffer); S2SessionCmd1 * s2_session_cmd1__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s2_session_cmd1__free_unpacked (S2SessionCmd1 *message, ProtobufCAllocator *allocator); /* S2SessionResp1 methods */ void s2_session_resp1__init (S2SessionResp1 *message); size_t s2_session_resp1__get_packed_size (const S2SessionResp1 *message); size_t s2_session_resp1__pack (const S2SessionResp1 *message, uint8_t *out); size_t s2_session_resp1__pack_to_buffer (const S2SessionResp1 *message, ProtobufCBuffer *buffer); S2SessionResp1 * s2_session_resp1__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s2_session_resp1__free_unpacked (S2SessionResp1 *message, ProtobufCAllocator *allocator); /* Sec2Payload methods */ void sec2_payload__init (Sec2Payload *message); size_t sec2_payload__get_packed_size (const Sec2Payload *message); size_t sec2_payload__pack (const Sec2Payload *message, uint8_t *out); size_t sec2_payload__pack_to_buffer (const Sec2Payload *message, ProtobufCBuffer *buffer); Sec2Payload * sec2_payload__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void sec2_payload__free_unpacked (Sec2Payload *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*S2SessionCmd0_Closure) (const S2SessionCmd0 *message, void *closure_data); typedef void (*S2SessionResp0_Closure) (const S2SessionResp0 *message, void *closure_data); typedef void (*S2SessionCmd1_Closure) (const S2SessionCmd1 *message, void *closure_data); typedef void (*S2SessionResp1_Closure) (const S2SessionResp1 *message, void *closure_data); typedef void (*Sec2Payload_Closure) (const Sec2Payload *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCEnumDescriptor sec2_msg_type__descriptor; extern const ProtobufCMessageDescriptor s2_session_cmd0__descriptor; extern const ProtobufCMessageDescriptor s2_session_resp0__descriptor; extern const ProtobufCMessageDescriptor s2_session_cmd1__descriptor; extern const ProtobufCMessageDescriptor s2_session_resp1__descriptor; extern const ProtobufCMessageDescriptor sec2_payload__descriptor; PROTOBUF_C__END_DECLS /* ... */ #endif /* PROTOBUF_C_sec2_2eproto__INCLUDED */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.