summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/ssl/ssl3exthandle.h
blob: 3e9b418cfe1469f66a7e2379f39d7263dc875932 (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
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is PRIVATE to SSL.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __ssl3exthandle_h_
#define __ssl3exthandle_h_

#include "sslencode.h"

SECStatus ssl3_SendRenegotiationInfoXtn(const sslSocket *ss,
                                        TLSExtensionData *xtnData,
                                        sslBuffer *buf, PRBool *added);
SECStatus ssl3_HandleRenegotiationInfoXtn(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          SECItem *data);
SECStatus ssl3_ClientHandleNextProtoNegoXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ClientHandleAppProtoXtn(const sslSocket *ss,
                                       TLSExtensionData *xtnData,
                                       SECItem *data);
SECStatus ssl3_ServerHandleNextProtoNegoXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ServerHandleAppProtoXtn(const sslSocket *ss,
                                       TLSExtensionData *xtnData,
                                       SECItem *data);
SECStatus ssl3_ClientSendNextProtoNegoXtn(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          sslBuffer *buf, PRBool *added);
SECStatus ssl3_ClientSendAppProtoXtn(const sslSocket *ss,
                                     TLSExtensionData *xtnData,
                                     sslBuffer *buf, PRBool *added);
SECStatus ssl3_ServerSendAppProtoXtn(const sslSocket *ss,
                                     TLSExtensionData *xtnData,
                                     sslBuffer *buf, PRBool *added);
SECStatus ssl3_ClientSendUseSRTPXtn(const sslSocket *ss,
                                    TLSExtensionData *xtnData,
                                    sslBuffer *buf, PRBool *added);
SECStatus ssl3_ServerSendUseSRTPXtn(const sslSocket *ss,
                                    TLSExtensionData *xtnData,
                                    sslBuffer *buf, PRBool *added);
SECStatus ssl3_ClientHandleUseSRTPXtn(const sslSocket *ss,
                                      TLSExtensionData *xtnData,
                                      SECItem *data);
SECStatus ssl3_ServerHandleUseSRTPXtn(const sslSocket *ss,
                                      TLSExtensionData *xtnData,
                                      SECItem *data);
SECStatus ssl3_ServerSendStatusRequestXtn(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          sslBuffer *buf, PRBool *added);
SECStatus ssl3_ServerHandleStatusRequestXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ClientHandleStatusRequestXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ClientSendStatusRequestXtn(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          sslBuffer *buf, PRBool *added);
SECStatus ssl3_SendSigAlgsXtn(const sslSocket *ss, TLSExtensionData *xtnData,
                              sslBuffer *buf, PRBool *added);
SECStatus ssl3_HandleSigAlgsXtn(const sslSocket *ss, TLSExtensionData *xtnData,
                                SECItem *data);

SECStatus ssl3_ClientSendPaddingExtension(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          sslBuffer *buf, PRBool *added);

SECStatus ssl3_ClientSendSignedCertTimestampXtn(const sslSocket *ss,
                                                TLSExtensionData *xtnData,
                                                sslBuffer *buf, PRBool *added);
SECStatus ssl3_ClientHandleSignedCertTimestampXtn(const sslSocket *ss,
                                                  TLSExtensionData *xtnData,
                                                  SECItem *data);
SECStatus ssl3_ServerSendSignedCertTimestampXtn(const sslSocket *ss,
                                                TLSExtensionData *xtnData,
                                                sslBuffer *buf, PRBool *added);
SECStatus ssl3_ServerHandleSignedCertTimestampXtn(const sslSocket *ss,
                                                  TLSExtensionData *xtnData,
                                                  SECItem *data);
SECStatus ssl3_SendExtendedMasterSecretXtn(const sslSocket *ss,
                                           TLSExtensionData *xtnData,
                                           sslBuffer *buf, PRBool *added);
SECStatus ssl3_HandleExtendedMasterSecretXtn(const sslSocket *ss,
                                             TLSExtensionData *xtnData,
                                             SECItem *data);
SECStatus ssl3_ProcessSessionTicketCommon(sslSocket *ss, const SECItem *ticket,
                                          /* out */ SECItem *appToken);
PRBool ssl_ShouldSendSNIExtension(const sslSocket *ss, const char *url);
SECStatus ssl3_ClientFormatServerNameXtn(const sslSocket *ss, const char *url,
                                         TLSExtensionData *xtnData,
                                         sslBuffer *buf);
SECStatus ssl3_ClientSendServerNameXtn(const sslSocket *ss,
                                       TLSExtensionData *xtnData,
                                       sslBuffer *buf, PRBool *added);
SECStatus ssl3_HandleServerNameXtn(const sslSocket *ss,
                                   TLSExtensionData *xtnData,
                                   SECItem *data);
SECStatus ssl_HandleSupportedGroupsXtn(const sslSocket *ss,
                                       TLSExtensionData *xtnData,
                                       SECItem *data);
SECStatus ssl3_HandleSupportedPointFormatsXtn(const sslSocket *ss,
                                              TLSExtensionData *xtnData,
                                              SECItem *data);
SECStatus ssl3_ClientHandleSessionTicketXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ServerHandleSessionTicketXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            SECItem *data);
SECStatus ssl3_ClientSendSessionTicketXtn(const sslSocket *ss,
                                          TLSExtensionData *xtnData,
                                          sslBuffer *buf, PRBool *added);

SECStatus ssl_SendSupportedGroupsXtn(const sslSocket *ss,
                                     TLSExtensionData *xtnData,
                                     sslBuffer *buf, PRBool *added);
SECStatus ssl3_SendSupportedPointFormatsXtn(const sslSocket *ss,
                                            TLSExtensionData *xtnData,
                                            sslBuffer *buf, PRBool *added);
SECStatus ssl_HandleRecordSizeLimitXtn(const sslSocket *ss,
                                       TLSExtensionData *xtnData,
                                       SECItem *data);
SECStatus ssl_SendRecordSizeLimitXtn(const sslSocket *ss,
                                     TLSExtensionData *xtnData,
                                     sslBuffer *buf, PRBool *added);

#endif