diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-07-05 19:35:53 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-07-06 08:44:52 -0400 |
commit | 1cc2bf890647c385b04d19213173d07266fcfcad (patch) | |
tree | 40dc6a866b14eed5d0ecc7ecd1d1b3dcafc266e7 /proxy | |
parent | b324a166a7724b05b8a9309578073e69536af78a (diff) | |
download | gss-proxy-1cc2bf890647c385b04d19213173d07266fcfcad.tar.gz gss-proxy-1cc2bf890647c385b04d19213173d07266fcfcad.tar.xz gss-proxy-1cc2bf890647c385b04d19213173d07266fcfcad.zip |
Use gp_encrypt_buffer and gp_decrypt_buffer.
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy')
-rw-r--r-- | proxy/src/gp_export.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 4671644..90e0ef1 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -493,8 +493,9 @@ uint32_t gp_export_gssx_cred(uint32_t *min, goto done; } - ret = gp_conv_cred_handle_to_octet_string(&handle, - &out->cred_handle_reference); + ret = gp_encrypt_buffer(ring_buffer->context, &ring_buffer->key, + sizeof(handle), &handle, + &out->cred_handle_reference); if (ret) { ret_maj = GSS_S_FAILURE; ret_min = ret; @@ -541,8 +542,9 @@ int gp_find_cred_int(struct gp_ring_buffer *ring_buffer, gssx_cred *cred, { int ret; - ret = gp_conv_octet_string_to_cred_handle(&cred->cred_handle_reference, - handle); + ret = gp_decrypt_buffer(ring_buffer->context, &ring_buffer->key, + &cred->cred_handle_reference, + sizeof(*handle), handle); if (ret) { return ENOENT; } |