diff options
author | Günther Deschner <gdeschner@redhat.com> | 2012-07-05 19:36:32 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-07-06 08:44:52 -0400 |
commit | d331e589cd00df5482a2848d9d6ac33e9f41b662 (patch) | |
tree | 7e470f7ec5c1312a17c32496d950e1932e788495 /proxy/src | |
parent | 1cc2bf890647c385b04d19213173d07266fcfcad (diff) | |
download | gss-proxy-d331e589cd00df5482a2848d9d6ac33e9f41b662.tar.gz gss-proxy-d331e589cd00df5482a2848d9d6ac33e9f41b662.tar.xz gss-proxy-d331e589cd00df5482a2848d9d6ac33e9f41b662.zip |
Remove unused gp_credential_handle conversion fns
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r-- | proxy/src/gp_export.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 90e0ef1..4fa22ab 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -281,40 +281,6 @@ static uint32_t gp_read_gss_creds_from_ring_buffer(uint32_t *min, return GSS_S_COMPLETE; } -static int gp_conv_cred_handle_to_octet_string(struct gp_credential_handle *in, - octet_string *out) -{ - if (!in || !out) { - return EINVAL; - } - - out->octet_string_len = sizeof(struct gp_credential_handle); - out->octet_string_val = malloc(out->octet_string_len); - if (!out->octet_string_val) { - return ENOMEM; - } - - memcpy(out->octet_string_val, in, out->octet_string_len); - - return 0; -} - -static int gp_conv_octet_string_to_cred_handle(octet_string *in, - struct gp_credential_handle *out) -{ - if (!in || !out) { - return EINVAL; - } - - if (in->octet_string_len != sizeof(struct gp_credential_handle)) { - return EINVAL; - } - - memcpy(out, in->octet_string_val, in->octet_string_len); - - return 0; -} - static int gp_encrypt_buffer(krb5_context context, krb5_keyblock *key, size_t len, void *buf, octet_string *out) |