Blame src/tests/misc/test_cxx_krb5.cpp
|
Packit |
fd8b60 |
// Test that the krb5.h header is compatible with C++ application code.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#include <stdio.h>
|
|
Packit |
fd8b60 |
#include "krb5.h"
|
|
Packit |
fd8b60 |
#include "krb5/locate_plugin.h"
|
|
Packit |
fd8b60 |
#include "profile.h"
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
int main (int argc, char *argv[])
|
|
Packit |
fd8b60 |
{
|
|
Packit |
fd8b60 |
krb5_context ctx;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
if (krb5_init_context(&ctx) != 0) {
|
|
Packit |
fd8b60 |
printf("krb5_init_context returned an error\n");
|
|
Packit |
fd8b60 |
return 1;
|
|
Packit |
fd8b60 |
}
|
|
Packit |
fd8b60 |
printf("hello, world\n");
|
|
Packit |
fd8b60 |
krb5_free_context(ctx);
|
|
Packit |
fd8b60 |
return 0;
|
|
Packit |
fd8b60 |
}
|