Package tlslite :: Module extensions :: Class RenegotiationInfoExtension
[hide private]
[frames] | no frames]

type RenegotiationInfoExtension

source code


Client and Server Hello secure renegotiation extension from RFC 5746

Should have an empty renegotiated_connection field in case of initial connection

Instance Methods [hide private]
 
__init__(self)
Create instance
source code
TLSExtension
create(self, renegotiated_connection)
Set the finished message payload from previous connection.
source code
RenegotiationInfoExtension
parse(self, parser)
Deserialise extension from on the wire data.
source code

Inherited from TLSExtension: __eq__, __repr__, write

Inherited from TLSExtension (private): _newCreate, _oldCreate

Static Methods [hide private]

Inherited from TLSExtension (private): _parseExt

Class Variables [hide private]
Instance Variables [hide private]

Inherited from TLSExtension: extType, serverType

Properties [hide private]
bytearray extData
a byte array containing the value of the extension as to be written on the wire
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create instance

Parameters:
  • server - whether to select ClientHello or ServerHello version for parsing
  • extType - type of extension encoded as an integer, to be used by subclasses
Overrides: TLSExtension.__init__

create(self, renegotiated_connection)

source code 

Set the finished message payload from previous connection.

Parameters:
  • extType - if int: type of the extension encoded as an integer between 0 and 2^16-1
  • data - raw data representing extension on the wire
  • renegotiated_connection (bytearray)
Returns: TLSExtension
Overrides: TLSExtension.create

parse(self, parser)

source code 

Deserialise extension from on the wire data.

Parameters:
Returns: RenegotiationInfoExtension
Raises:
  • SyntaxError - when the size of the passed element doesn't match the internal representation
Overrides: TLSExtension.parse

Property Details [hide private]

extData

a byte array containing the value of the extension as to be written on the wire
Type:
bytearray