5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 2000 Pekka Riikonen
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.
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.
21 #ifndef SILCSKE_STATUS_H
22 #define SILCSKE_STATUS_H
24 /* Status flags returned by all SKE routines */
26 /* These are defined by the protocol */
27 SILC_SKE_STATUS_OK = 0,
28 SILC_SKE_STATUS_ERROR = 1,
29 SILC_SKE_STATUS_BAD_PAYLOAD = 2,
30 SILC_SKE_STATUS_UNKNOWN_GROUP = 3,
31 SILC_SKE_STATUS_UNKNOWN_CIPHER = 4,
32 SILC_SKE_STATUS_UNKNOWN_PKCS = 5,
33 SILC_SKE_STATUS_UNKNOWN_HASH_FUNCTION = 6,
34 SILC_SKE_STATUS_UNKNOWN_HMAC = 7,
35 SILC_SKE_STATUS_UNSUPPORTED_PUBLIC_KEY = 8,
36 SILC_SKE_STATUS_INCORRECT_SIGNATURE = 9,
37 SILC_SKE_STATUS_BAD_VERSION = 10,
39 SILC_SKE_STATUS_KEY_EXCHANGE_NOT_ACTIVE,
40 SILC_SKE_STATUS_BAD_RESERVED_FIELD,
41 SILC_SKE_STATUS_BAD_PAYLOAD_LENGTH,
42 SILC_SKE_STATUS_INCORRECT_HASH,
43 SILC_SKE_STATUS_INCORRECT_PUBLIC_KEY,