Evd.TlsSession

g Evd.TlsSession Evd.TlsSession GObject.Object GObject.Object GObject.Object->Evd.TlsSession

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

close ()

copy_properties (target)

get_credentials ()

get_direction ()

get_peer_certificates ()

get_server_name ()

handshake ()

read (buffer, size)

reset ()

set_credentials (credentials)

set_server_name (server_name)

set_transport_pull_func (func, *user_data)

set_transport_push_func (func, *user_data)

shutdown_write ()

verify_peer (flags)

write (buffer, size)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

credentials

Evd.TlsCredentials

r/w

The certificate credentials object to use by this SSL/TLS session

mode

int

r/w

The SSL/TLS session’s mode of operation: client or server

priority

str

r/w

Gets/sets the priorities to use on the ciphers, key exchange methods, macs and compression methods

require-peer-cert

bool

r/w

Controls whether a peer certificate will be requested during handshake

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Evd.TlsSession(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Evd.TlsSessionClass

classmethod new()
Return type:

Evd.TlsSession

close()
Raises:

GLib.Error

Return type:

bool

copy_properties(target)
Parameters:

target (Evd.TlsSession) –

get_credentials()
Returns:

The Evd.TlsCredentials object of this session

Return type:

Evd.TlsCredentials

get_direction()
Return type:

GLib.IOCondition

get_peer_certificates()
Raises:

GLib.Error

Returns:

The list of certificates as sent by the peer.

Return type:

[Evd.TlsCertificate]

get_server_name()
Return type:

str

handshake()
Raises:

GLib.Error

Return type:

int

read(buffer, size)
Parameters:
  • buffer (str) –

  • size (int) –

Raises:

GLib.Error

Return type:

int

reset()
set_credentials(credentials)
Parameters:

credentials (Evd.TlsCredentials) –

set_server_name(server_name)
Parameters:

server_name (str) –

Raises:

GLib.Error

Return type:

bool

set_transport_pull_func(func, *user_data)
Parameters:
set_transport_push_func(func, *user_data)
Parameters:
shutdown_write()
Raises:

GLib.Error

Return type:

bool

verify_peer(flags)
Parameters:

flags (int) –

Raises:

GLib.Error

Return type:

int

write(buffer, size)
Parameters:
  • buffer (str) –

  • size (int) –

Raises:

GLib.Error

Return type:

int

Property Details

Evd.TlsSession.props.credentials
Name:

credentials

Type:

Evd.TlsCredentials

Default Value:

None

Flags:

READABLE, WRITABLE

The certificate credentials object to use by this SSL/TLS session

Evd.TlsSession.props.mode
Name:

mode

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE

The SSL/TLS session’s mode of operation: client or server

Evd.TlsSession.props.priority
Name:

priority

Type:

str

Default Value:

'NORMAL'

Flags:

READABLE, WRITABLE

Gets/sets the priorities to use on the ciphers, key exchange methods, macs and compression methods

Evd.TlsSession.props.require_peer_cert
Name:

require-peer-cert

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Controls whether a peer certificate will be requested during handshake