![]() |
![]() |
![]() |
GSK Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GskStreamSsl; GskStream * gsk_stream_ssl_new_client (const char *cert_file, const char *key_file, const char *password, GskStream *transport, GError **error); GskStream * gsk_stream_ssl_new_server (const char *cert_file, const char *key_file, const char *password, GskStream *transport, GError **error); GskStream * gsk_stream_ssl_peek_backend (GskStreamSsl *ssl);
"cert-file" gchar* : Read / Write / Construct Only "is-client" gboolean : Read / Write / Construct Only "key-file" gchar* : Read / Write / Construct Only "password" gchar* : Write / Construct Only
GskStream * gsk_stream_ssl_new_client (const char *cert_file, const char *key_file, const char *password, GskStream *transport, GError **error);
Create the client end of a SSL connection.
This should be attached to a connecting or connected stream,
usually provided as the transport
argument.
|
the PEM x509 certificate file. |
|
key file??? |
|
password required by the certificate, or NULL. |
|
optional transport layer (which will be connected to the backend stream by bidirectionally). |
|
optional location in which to store a GError. |
Returns : |
the new SSL stream, or NULL if an error occurs. |
GskStream * gsk_stream_ssl_new_server (const char *cert_file, const char *key_file, const char *password, GskStream *transport, GError **error);
Create a new SSL server.
It should be connected to a socket which was accepted from
a server (usually provided as the transport
argument).
|
the PEM x509 certificate file. |
|
key file??? |
|
password required by the certificate, or NULL. |
|
optional transport layer (which will be connected to the backend stream by bidirectionally). |
|
optional location in which to store a GError. |
Returns : |
the new SSL stream, or NULL if an error occurs. |
GskStream * gsk_stream_ssl_peek_backend (GskStreamSsl *ssl);
Get a reference to the backend stream, which should be connected to the underlying transport layer.
|
the stream to query. |
Returns : |
the SSL backend (to be connected to the transport, which is the stream which is typically insecure without SSL protection). |
"cert-file"
property"cert-file" gchar* : Read / Write / Construct Only
the x.509 PEM Certificate.
Default value: NULL
"is-client"
property"is-client" gboolean : Read / Write / Construct Only
is this a SSL client (versus a server).
Default value: FALSE
"key-file"
property"key-file" gchar* : Read / Write / Construct Only
the x.509 PEM Key.
Default value: NULL
"password"
property"password" gchar* : Write / Construct Only
secret passphrase for the certificate.
Default value: NULL