diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-08-29 17:24:48 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2012-08-29 19:25:32 +0200 |
commit | 065706f2c23027f30695b367d8e1c27fd9b4f2e3 (patch) | |
tree | 89bd4a85abc3a0a2026ab16befd421d45a0763b2 | |
parent | 940677c51ad03966ac8daa96a88ded0f15f8325f (diff) | |
download | gss-proxy-065706f2c23027f30695b367d8e1c27fd9b4f2e3.tar.gz gss-proxy-065706f2c23027f30695b367d8e1c27fd9b4f2e3.tar.xz gss-proxy-065706f2c23027f30695b367d8e1c27fd9b4f2e3.zip |
Add testcode for gpm_wrap_size_limit().
-rw-r--r-- | proxy/tests/cli_srv_comm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/proxy/tests/cli_srv_comm.c b/proxy/tests/cli_srv_comm.c index d1c282f..3b95301 100644 --- a/proxy/tests/cli_srv_comm.c +++ b/proxy/tests/cli_srv_comm.c @@ -210,6 +210,7 @@ void *client_thread(void *pvt) int ret = 0; gss_buffer_desc msg_buf = GSS_C_EMPTY_BUFFER; int conf_state; + uint32_t max_size; data = (struct athread *)pvt; @@ -323,6 +324,18 @@ void *client_thread(void *pvt) goto done; } + ret_maj = gpm_wrap_size_limit(&ret_min, + ctx, + 1, /* conf_req */ + GSS_C_QOP_DEFAULT, /* qop_req */ + 4096, /* size_req */ + &max_size); + if (ret_maj) { + fprintf(stderr, "gpm_wrap_size_limit failed: %d\n", ret_maj); + gp_log_failure(GSS_C_NO_OID, ret_maj, ret_min); + goto done; + } + fprintf(stdout, "client: Success!\n"); done: |