summaryrefslogtreecommitdiffstats
path: root/src/tests/misc/test_cxx_kadm5.cpp
blob: 59422ed1c7afebe4c6e86b8e9f3ef6f7eed44e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test that the kadm5 header is compatible with C++ application code.

#include "kadm5/admin.h"

krb5_context ctx;
kadm5_config_params p_in, p_out;
int main (int argc, char *argv[])
{
    if (argc == 47 && kadm5_get_config_params(ctx, 1, &p_in, &p_out)) {
	printf("error\n");
	return 1;
    }
    printf("hello, world\n");
    return 0;
}