File: pkd_daemon.h

package info (click to toggle)
libssh 0.10.6-0%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,556 kB
  • sloc: ansic: 88,809; cpp: 407; sh: 119; makefile: 41; javascript: 20; python: 9
file content (63 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (2)
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
62
63
/*
 * pkd_daemon.h -- tests use this interface to start, stop pkd
 *                 instances and get results
 *
 * (c) 2014 Jon Simons
 */

#ifndef __PKD_DAEMON_H__
#define __PKD_DAEMON_H__

#include "config.h"

enum pkd_hostkey_type_e {
    PKD_RSA,
#ifdef HAVE_DSA
    PKD_DSA,
#endif
    PKD_ED25519,
    PKD_ECDSA
};

struct pkd_daemon_args {
    enum pkd_hostkey_type_e type;
    const char *hostkeypath;

    struct {
        const uint8_t *buf;
        size_t len;
    } payload;

    uint64_t rekey_data_limit;

    int original_dir_fd;

    struct {
        int list;

        int log_stdout;
        int log_stderr;
        int libssh_log_level;

        const char *testname;
        const char *testmatch;
        unsigned int iterations;

        struct {
            char *mkdtemp_str;
        } socket_wrapper;

        struct {
            char *mkdtemp_str;
        } temp_dir;
    } opts;
};

struct pkd_result {
    int ok;
};

int pkd_start(struct pkd_daemon_args *args);
void pkd_stop(struct pkd_result *out);

#endif /* __PKD_DAEMON_H__ */