Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GTlsClientConnection |
Interface : | TlsClientConnection |
Properties | Defined By | |
---|---|---|
accepted_cas : void*
read only
A list of the distinguished names of the Certificate Authorities
that the server will accept client certificates signed by. A list of the distinguished names of the Certificate Authorities
that the server will accept client certificates signed by. If the server requests a client certificate during the handshake, then this property will be set after the handshake completes. Each item in the list is a GByteArray which contains the complete subject DN of the certificate authority. |
Gio.TlsClientConnection | |
server_identity : Gio.SocketConnectable
A GSocketConnectable describing the identity of the server that
is expected on the other end of the connection. A GSocketConnectable describing the identity of the server that
is expected on the other end of the connection. If the G_TLS_CERTIFICATE_BAD_IDENTITY flag is set in GTlsClientConnection:validation-flags, this object will be used to determine the expected identify of the remote end of the connection; if GTlsClientConnection:server-identity is not set, or does not match the identity presented by the server, then the G_TLS_CERTIFICATE_BAD_IDENTITY validation will fail. In addition to its use in verifying the server certificate, this is also used to give a hint to the server about what certificate we expect, which is useful for servers that serve virtual hosts. |
Gio.TlsClientConnection | |
use_ssl3 : gboolean
If TRUE, tells the connection to use SSL 3.0 rather than trying
to negotiate the best version of TLS or SSL to use. If TRUE, tells the connection to use SSL 3.0 rather than trying
to negotiate the best version of TLS or SSL to use. This can be used when talking to servers that don't implement version negotiation correctly and therefore refuse to handshake at all with a "modern" TLS handshake. |
Gio.TlsClientConnection | |
validation_flags : Gio.TlsCertificateFlags
What steps to perform when validating a certificate received from
a server. What steps to perform when validating a certificate received from
a server. Server certificates that fail to validate in all of the ways indicated here will be rejected unless the application overrides the default via GTlsConnection::accept-certificate. |
Gio.TlsClientConnection |
Method / Constructor | Defined By | |
---|---|---|
get_accepted_cas
()
:
Array
Gets the list of distinguished names of the Certificate Authorities
that the server will accept certificates from.
Gets the list of distinguished names of the Certificate Authorities
that the server will accept certificates from. This will be set during the TLS handshake if the server requests a certificate. Otherwise, it will be NULL. Each item in the list is a GByteArray which contains the complete subject DN of the certificate authority. CA DNs. You should unref each element with g_byte_array_unref() and then the free the list with g_list_free().
|
Gio.TlsClientConnection | |
get_use_ssl3
()
:
gboolean
Gets whether conn will use SSL 3.0 rather than the
highest-supported version of TLS; see g_tls_client_connection_set_use_ssl3().
Gets whether conn will use SSL 3.0 rather than the
highest-supported version of TLS; see g_tls_client_connection_set_use_ssl3().
|
Gio.TlsClientConnection | |
get_validation_flags
()
:
Gio.TlsCertificateFlags
Gets conn's validation flags
Gets conn's validation flags
|
Gio.TlsClientConnection | |
set_server_identity
(SocketConnectable identity)
:
none
Sets conn's expected server identity, which is used both to tell
servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled.
Sets conn's expected server identity, which is used both to tell
servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled.
|
Gio.TlsClientConnection | |
set_use_ssl3
(gboolean use_ssl3)
:
none
If use_ssl3 is TRUE, this forces conn to use SSL 3.0 rather than
trying to properly negotiate the right version of TLS or SSL to use.
If use_ssl3 is TRUE, this forces conn to use SSL 3.0 rather than
trying to properly negotiate the right version of TLS or SSL to use. This can be used when talking to servers that do not implement the fallbacks correctly and which will therefore fail to handshake with a "modern" TLS handshake attempt.
|
Gio.TlsClientConnection | |
set_validation_flags
(TlsCertificateFlags flags)
:
none
Sets conn's validation flags, to override the default set of
checks performed when validating a server certificate.
Sets conn's validation flags, to override the default set of
checks performed when validating a server certificate. By default, G_TLS_CERTIFICATE_VALIDATE_ALL is used.
|
Gio.TlsClientConnection |
None |