]> git.ipfire.org Git - people/ms/suricata.git/blob - src/app-layer-ssl.h
tls/ssl parser modifications/fixes. We now have just one file doing all the ssl parsi...
[people/ms/suricata.git] / src / app-layer-ssl.h
1 /* Copyright (C) 2007-2010 Open Information Security Foundation
2 *
3 * You can copy, redistribute or modify this Program under the terms of
4 * the GNU General Public License version 2 as published by the Free
5 * Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * version 2 along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15 * 02110-1301, USA.
16 */
17
18 ///**
19 // * \file
20 // *
21 // * \author Gurvinder Singh <gurvindersinghdahiya@gmail.com>
22 // */
23 //
24 //#ifndef _APP_LAYER_SSL_H
25 //#define _APP_LAYER_SSL_H
26 //
27 //#define SSL_CLIENT_VERSION 0x0002
28 //#define SSL_SERVER_VERSION 0x0002
29 //
30 ///* SSL message types */
31 //#define SSL_ERROR 0
32 //#define SSL_CLIENT_HELLO 1
33 //#define SSL_CLIENT_MASTER_KEY 2
34 //#define SSL_CLIENT_FINISHED 3
35 //#define SSL_SERVER_HELLO 4
36 //#define SSL_SERVER_VERIFY 5
37 //#define SSL_SERVER_FINISHED 6
38 //#define SSL_REQUEST_CERTIFICATE 7
39 //#define SSL_CLIENT_CERTIFICATE 8
40 //
41 ///* structure to store the SSL state values */
42 //typedef struct SslState_ {
43 // uint8_t flags; /**< Flags to indicate the current SSL
44 // sessoin state */
45 // uint8_t client_content_type; /**< Client content type storage field */
46 // uint16_t client_version; /**< Client SSL version storage field */
47 //
48 // uint16_t server_version; /**< Server SSL version storage field */
49 // uint8_t server_content_type; /**< Server content type storage field */
50 //} SslState;
51 //
52 //typedef struct SslClient_ {
53 // uint16_t length; /**< Length of the received message */
54 // uint8_t msg_type;
55 // uint8_t minor_ver;
56 // uint8_t major_ver;
57 // uint16_t cipher_spec_len;
58 // uint16_t session_id_len;
59 //} SslClient;
60 //
61 //typedef struct SslServer_ {
62 // uint16_t lentgth;
63 // uint8_t msg_type;
64 // uint8_t session_id;
65 // uint8_t cert;
66 // uint8_t minor_ver;
67 // uint8_t major_ver;
68 //} SslServer;
69 //
70 //int SSLParseClientRecord(Flow *, void *, AppLayerParserState *, uint8_t *,
71 // uint32_t , AppLayerParserResult *);
72 //
73 //int SSLParseServerRecord(Flow *, void *, AppLayerParserState *, uint8_t *,
74 // uint32_t , AppLayerParserResult *);
75 //
76 //void SSLParserRegisterTests(void);
77 //
78 //#endif /* _APP_LAYER_SSL_H */
79