File: libmoonshot.vapi

package info (click to toggle)
moonshot-ui 1.1.0+libsecret~2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 4,460 kB
  • sloc: ansic: 39,118; sh: 4,682; makefile: 201; sed: 27; xml: 10
file content (61 lines) | stat: -rw-r--r-- 2,846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* Vala binding between libmoonshot helper library */

[CCode (cheader_filename = "libmoonshot.h")]
namespace Moonshot {
    [Compact]
    [CCode (cname = "MoonshotError", free_function = "moonshot_error_free")]
    public class Error {
        public int code;
        public string message;
    }

    /* A service matching rule; duplicated in moonshot-id.vala */
    [CCode (cname = "MoonshotServiceRule")]
    public struct ServiceRule {
        public string pattern;
        public string always_confirm;
    }

    [CCode (cname = "moonshot_get_identity")]
    public bool get_identity (string nai,
                              string password,
                              string service,
                              out string nai_out,
                              out string password_out,
                              out string server_certificate_hash_out,
                              out string ca_certificate_out,
                              out string subject_name_constraint_out,
                              out string subject_alt_name_constraint_out,
                              out Moonshot.Error error);

    [CCode (cname = "moonshot_get_default_identity")]
    public bool get_default_identity (out string nai_out,
                                      out string password_out,
                                      out string server_certificate_hash_out,
                                      out string ca_certificate_out,
                                      out string subject_name_constraint_out,
                                      out string subject_alt_name_constraint_out,
                                      out Moonshot.Error error);

    [CCode (cname = "moonshot_install_id_card")]
    public bool install_id_card (string display_name,
                                 string? user_name,
                                 string? password,
                                 string? realm,
                                 string[] rules_patterns,
                                 string[] rules_always_confirm,
                                 string[] services,
                                 string? ca_cert,
                                 string? subject,
                                 string? subject_alt,
                                 string? server_cert,
                                 int force_flat_file_store,
                                 out Moonshot.Error error);

    [CCode (cname = "moonshot_confirm_ca_certificate")]
    public bool moonshot_confirm_ca_certificate (string identity_name,
                                                 string realm,
                                                 string ca_hash,
                                                 out uint32 confirmed,
                                                 out Moonshot.Error error);
}