df982a7bca3d416b9a889f079a59620ec11597c8
[silc.git] / lib / silcske / payload.h
1 /*
2
3   payload.h
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 2000 - 2001 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 2 of the License, or
12   (at your option) any later version.
13   
14   This program is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18
19 */
20
21 #ifndef PAYLOAD_H
22 #define PAYLOAD_H
23
24 #include "silcske_status.h"
25 #include "payload_internal.h"
26
27 /* Prototypes */
28 SilcSKEStatus silc_ske_payload_start_encode(SilcSKE ske,
29                                             SilcSKEStartPayload *payload,
30                                             SilcBuffer *return_buffer);
31 SilcSKEStatus 
32 silc_ske_payload_start_decode(SilcSKE ske,
33                               SilcBuffer buffer,
34                               SilcSKEStartPayload **return_payload);
35 void silc_ske_payload_start_free(SilcSKEStartPayload *payload);
36 SilcSKEStatus silc_ske_payload_ke_encode(SilcSKE ske,
37                                          SilcSKEKEPayload *payload,
38                                          SilcBuffer *return_buffer);
39 SilcSKEStatus silc_ske_payload_ke_decode(SilcSKE ske,
40                                          SilcBuffer buffer,
41                                          SilcSKEKEPayload **return_payload);
42 void silc_ske_payload_ke_free(SilcSKEKEPayload *payload);
43
44 #endif