Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/krb5/src/tests/misc/test_cxx_k5int.cpp
34906 views
1
// Test that the krb5 internal headers are compatible with C++ code.
2
// (Some Windows-specific code is in C++ in this source tree.)
3
4
#include <stdio.h>
5
#include "k5-int.h"
6
#include "k5-ipc_stream.h"
7
#include "k5-utf8.h"
8
9
int main (int argc, char *argv[])
10
{
11
krb5_context ctx;
12
13
if (krb5_init_context(&ctx) != 0) {
14
printf("krb5_init_context returned an error\n");
15
return 1;
16
}
17
printf("hello, world\n");
18
krb5_free_context(ctx);
19
return 0;
20
}
21
22