diff options
author | Zhanna Tsitkov <tsitkova@mit.edu> | 2011-03-29 16:22:05 +0000 |
---|---|---|
committer | Zhanna Tsitkov <tsitkova@mit.edu> | 2011-03-29 16:22:05 +0000 |
commit | 54a459f0c28587fe8ebd83c22830ac786386f3d7 (patch) | |
tree | fb1a7a80e7b6f837ba2250f2bce335c071048451 /doc/doxy_examples/cc_set_config.c | |
parent | a3c90d3f23e13dad1605c11b62c9d0c2205f2270 (diff) | |
download | krb5-54a459f0c28587fe8ebd83c22830ac786386f3d7.tar.gz krb5-54a459f0c28587fe8ebd83c22830ac786386f3d7.tar.xz krb5-54a459f0c28587fe8ebd83c22830ac786386f3d7.zip |
If the new configuration data that is passed to krb5_cc_set_config is NULL, just remove the old configuration.
Moved short krb5_cc_set_config usage example from krb5.hin into the separate file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24753 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc/doxy_examples/cc_set_config.c')
-rw-r--r-- | doc/doxy_examples/cc_set_config.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/doxy_examples/cc_set_config.c b/doc/doxy_examples/cc_set_config.c new file mode 100644 index 0000000000..6e3f182d8a --- /dev/null +++ b/doc/doxy_examples/cc_set_config.c @@ -0,0 +1,16 @@ +/** @example cc_set_config.c + * + * Demo for krb5_cc_set_config function + */ +#include <k5-int.h> + +krb5_error_code +func(krb5_context context, krb5_ccache id, + krb5_const_principal principal, const char *key) +{ + krb5_data config_data; + + config_data.data = "yes"; + config_data.length = strlen(config_data.data); + return krb5_cc_set_config(context, id, principal, key, &config_data); +} |