libinfgtk-0.6 Reference Manual: InfGtkCertificateManager

## InfGtkCertificateManager InfGtkCertificateManager |

## Functions

InfGtkCertificateManager * | inf_gtk_certificate_manager_new ()

## Properties

gchar * | known-hosts-file | Read / Write
GtkWindow * | parent-window | Read / Write / Construct Only
InfXmppManager * | xmpp-manager | Read / Write / Construct Only

## Types and Values

struct | InfGtkCertificateManager
struct | InfGtkCertificateManagerClass

## Object Hierarchy

        GObject
        ╰── InfGtkCertificateManager

## Description

## Functions

### inf_gtk_certificate_manager_new ()

    InfGtkCertificateManager *
    inf_gtk_certificate_manager_new (GtkWindow *parent_window,
                                     InfXmppManager *xmpp_manager,
                                     const gchar *known_hosts_file);

Creates a new InfGtkCertificateManager. For each new client-side InfXmppConnection in `xmpp_manager` , the certificate manager will verify the server's certificate.

If the certificate is contained in `known_hosts_file` , then the certificate is accepted automatically. Otherwise, the user is asked for approval. If the user approves the certificate, then it is inserted into the `known_hosts_file` .

#### Parameters

parent_window | The GtkWindow to which to make certificate approval dialogs transient to. |
xmpp_manager | The InfXmppManager whose InfXmppConnections to manage the certificates for. |
known_hosts_file | Path pointing to a file that contains certificates of known hosts, or `NULL`. |

#### Returns

A new InfGtkCertificateManager.

## Types and Values

### struct InfGtkCertificateManager

    struct InfGtkCertificateManager;

### struct InfGtkCertificateManagerClass

    struct InfGtkCertificateManagerClass {
      GObjectClass parent_class;
    };

## Property Details

### The `“known-hosts-file”` property

      “known-hosts-file”         gchar *

File containing certificates of known hosts.

Flags: Read / Write

Default value: NULL

### The `“parent-window”` property

      “parent-window”            GtkWindow *

The parent window for certificate approval dialogs.

Flags: Read / Write / Construct Only

### The `“xmpp-manager”` property

      “xmpp-manager”             InfXmppManager *

The XMPP manager of registered connections.

Flags: Read / Write / Construct Only