File: sync.h

package info (click to toggle)
krb5-sync 3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,556 kB
  • sloc: sh: 11,750; ansic: 7,181; perl: 663; makefile: 135
file content (37 lines) | stat: -rw-r--r-- 1,043 bytes parent folder | download | duplicates (4)
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
/*
 * Utility functions for krb5-sync testing.
 *
 * Written by Russ Allbery <eagle@eyrie.org>
 * Copyright 2012, 2013
 *     The Board of Trustees of the Leland Stanford Junior University
 *
 * See LICENSE for licensing terms.
 */

#ifndef TAP_SYNC_H
#define TAP_SYNC_H 1

#include <config.h>
#include <tests/tap/macros.h>

BEGIN_DECLS

/*
 * Block processing by creating a dummy queue file.  Takes the queue
 * directory, the username (as used for queuing), and the operation to block.
 * Calls bail on failure.
 */
void sync_queue_block(const char *queue, const char *user, const char *op);
void sync_queue_unblock(const char *queue, const char *user, const char *op);

/*
 * Check queue files for the correct information.  Reports results with the
 * normal TAP functions, and calls bail on OS failures.
 */
void sync_queue_check_enable(const char *queue, const char *user, bool);
void sync_queue_check_password(const char *queue, const char *user,
                               const char *password);

END_DECLS

#endif /* TAP_SYNC_H */