diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-09-03 17:07:40 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2012-10-18 17:45:59 +0200 |
commit | d6bb7932070cb9653405a77eaf1cb30f7221e391 (patch) | |
tree | 649d791a42d6bd4bad0871e1472caeb16b5d1a5a | |
parent | e1873931f1105991177c643a5300f05e8d24541f (diff) | |
download | gss-proxy-d6bb7932070cb9653405a77eaf1cb30f7221e391.tar.gz gss-proxy-d6bb7932070cb9653405a77eaf1cb30f7221e391.tar.xz gss-proxy-d6bb7932070cb9653405a77eaf1cb30f7221e391.zip |
interposetest: add test for gss_export_name_composite()
-rw-r--r-- | proxy/tests/interposetest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/proxy/tests/interposetest.c b/proxy/tests/interposetest.c index b2d0d46..e4543fb 100644 --- a/proxy/tests/interposetest.c +++ b/proxy/tests/interposetest.c @@ -463,6 +463,17 @@ void run_server(struct aproc *data) gp_log_failure(GSS_C_NO_OID, ret_maj, ret_min); goto done; } + + gss_release_buffer(&ret_min, &exported_name); + + ret_maj = gss_export_name_composite(&ret_min, canon_name, + &exported_name); + if (ret_maj) { + DEBUG("gss_export_name_composite() failed with: %d\n", ret_maj); + gp_log_failure(GSS_C_NO_OID, ret_maj, ret_min); + goto done; + } + ret_maj = gss_display_name(&ret_min, canon_name, &out_name_buf, &out_name_type); if (ret_maj) { |