1 // Test that the krb5.h header is compatible with C++ application code. 2 3 #include <stdio.h> 4 #include "krb5.h" 5 #include "krb5/locate_plugin.h" 6 #include "profile.h" 7 8 int main (int argc, char *argv[]) 9 { 10 krb5_context ctx; 11 12 if (krb5_init_context(&ctx) != 0) { 13 printf("krb5_init_context returned an error\n"); 14 return 1; 15 } 16 printf("hello, world\n"); 17 krb5_free_context(ctx); 18 return 0; 19 } 20