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 main(int argc,char * argv[])9int 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