Commit d4ea4413 authored by EKR's avatar EKR

Bug 1314676 - Refactor extension handler files. r=mt

This doesn't represent any new code or functionality. I just split things up into three files:

Summary:
- ssl3ext.c        -- generic extension processing machinery
- ssl3exthandle.c  -- extension handlers for TLS < 1.3
- tls13exthandle.c -- extension handlers for TLS 1.3

Note that there are still extension handlers in ssl3ext.c.

Reviewers: mt

Reviewed By: mt

Differential Revision: https://nss-dev.phacility.com/D141
parent 1c7088ac
......@@ -30,6 +30,7 @@ CSRCS = \
sslerrstrs.c \
sslinit.c \
ssl3ext.c \
ssl3exthandle.c \
sslmutex.c \
sslnonce.c \
sslreveal.c \
......@@ -43,6 +44,7 @@ CSRCS = \
sslinfo.c \
ssl3ecc.c \
tls13con.c \
tls13exthandle.c \
tls13hkdf.c \
sslcert.c \
sslgrp.c \
......
......@@ -17,6 +17,7 @@
'ssl3con.c',
'ssl3ecc.c',
'ssl3ext.c',
'ssl3exthandle.c'
'ssl3gthr.c',
'sslauth.c',
'sslcert.c',
......@@ -37,6 +38,7 @@
'ssltrace.c',
'sslver.c',
'tls13con.c',
'tls13exthandle.c',
'tls13hkdf.c',
],
'conditions': [
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
/* -*- 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_
PRInt32 ssl3_SendRenegotiationInfoXtn(sslSocket *ss,
PRBool append, PRUint32 maxBytes);
SECStatus ssl3_HandleRenegotiationInfoXtn(sslSocket *ss,
PRUint16 ex_type, SECItem *data);
SECStatus ssl3_ClientHandleNextProtoNegoXtn(sslSocket *ss,
PRUint16 ex_type, SECItem *data);
SECStatus ssl3_ClientHandleAppProtoXtn(sslSocket *ss,
PRUint16 ex_type, SECItem *data);
SECStatus ssl3_ServerHandleNextProtoNegoXtn(sslSocket *ss,
PRUint16 ex_type, SECItem *data);
SECStatus ssl3_ServerHandleAppProtoXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_ClientSendNextProtoNegoXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
PRInt32 ssl3_ClientSendAppProtoXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
PRInt32 ssl3_ServerSendAppProtoXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
PRInt32 ssl3_ClientSendUseSRTPXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
PRInt32 ssl3_ServerSendUseSRTPXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
SECStatus ssl3_ClientHandleUseSRTPXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
SECStatus ssl3_ServerHandleUseSRTPXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_ServerSendStatusRequestXtn(sslSocket *ss,
PRBool append, PRUint32 maxBytes);
SECStatus ssl3_ServerHandleStatusRequestXtn(sslSocket *ss,
PRUint16 ex_type, SECItem *data);
SECStatus ssl3_ClientHandleStatusRequestXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_ClientSendStatusRequestXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
PRInt32 ssl3_ClientSendSigAlgsXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
SECStatus ssl3_ServerHandleSigAlgsXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_ClientSendSignedCertTimestampXtn(sslSocket *ss,
PRBool append,
PRUint32 maxBytes);
SECStatus ssl3_ClientHandleSignedCertTimestampXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_ServerSendSignedCertTimestampXtn(sslSocket *ss,
PRBool append,
PRUint32 maxBytes);
SECStatus ssl3_ServerHandleSignedCertTimestampXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
PRInt32 ssl3_SendExtendedMasterSecretXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
SECStatus ssl3_HandleExtendedMasterSecretXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
SECStatus ssl3_ProcessSessionTicketCommon(sslSocket *ss, SECItem *data);
#endif
This diff is collapsed.
/* -*- 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 __tls13exthandle_h_
#define __tls13exthandle_h_
PRInt32 tls13_ServerSendStatusRequestXtn(sslSocket *ss,
PRBool append, PRUint32 maxBytes);
PRInt32 tls13_ClientSendKeyShareXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
SECStatus tls13_ClientHandleKeyShareXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ClientHandleKeyShareXtnHrr(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ServerHandleKeyShareXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
PRInt32 tls13_ClientSendPreSharedKeyXtn(sslSocket *ss, PRBool append,
PRUint32 maxBytes);
SECStatus tls13_ServerHandlePreSharedKeyXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ClientHandlePreSharedKeyXtn(sslSocket *ss,
PRUint16 ex_type,
SECItem *data);
PRInt32 tls13_ClientSendEarlyDataXtn(sslSocket *ss,
PRBool append,
PRUint32 maxBytes);
SECStatus tls13_ServerHandleEarlyDataXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ClientHandleEarlyDataXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ClientHandleTicketEarlyDataInfoXtn(
sslSocket *ss, PRUint16 ex_type,
SECItem *data);
SECStatus tls13_ClientHandleSigAlgsXtn(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
PRInt32 tls13_ClientSendSupportedVersionsXtn(sslSocket *ss,
PRBool append,
PRUint32 maxBytes);
SECStatus tls13_ClientHandleHrrCookie(sslSocket *ss, PRUint16 ex_type,
SECItem *data);
PRInt32 tls13_ClientSendHrrCookieXtn(sslSocket *ss,
PRBool append,
PRUint32 maxBytes);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment