diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-09-03 17:07:40 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-10-25 15:53:31 -0400 |
commit | 3ad66d91167edfdc223bbeb11dfec6057ab3c5d5 (patch) | |
tree | bc9c8b4231b189cd3a104bc01de859f1cb94606e /proxy/tests | |
parent | 0b28988be6ae5d5aeb1d13131b94be9d253fc231 (diff) | |
download | gss-proxy-3ad66d91167edfdc223bbeb11dfec6057ab3c5d5.tar.gz gss-proxy-3ad66d91167edfdc223bbeb11dfec6057ab3c5d5.tar.xz gss-proxy-3ad66d91167edfdc223bbeb11dfec6057ab3c5d5.zip |
interposetest: add test for gss_export_name_composite()
Diffstat (limited to 'proxy/tests')
-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) { |