diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-04-23 23:47:45 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-23 23:47:45 +0200 |
commit | ac5f4bcbe9e3cd37e675f64d18b41e49ba26c0ff (patch) | |
tree | c52089230be75c9e189d42f45b846b7dc0c4f938 | |
parent | f014eeceb218200c5864ce91a8de2cc21d951c32 (diff) | |
download | curl-bagder/krb5-remove-unused-func.tar.gz |
krb5: remove the unused 'overhead' functionbagder/krb5-remove-unused-func
-rw-r--r-- | lib/curl_krb5.h | 1 | ||||
-rw-r--r-- | lib/krb5.c | 14 |
2 files changed, 1 insertions, 14 deletions
diff --git a/lib/curl_krb5.h b/lib/curl_krb5.h index 3f40f9a6c..ca0684074 100644 --- a/lib/curl_krb5.h +++ b/lib/curl_krb5.h @@ -29,7 +29,6 @@ struct Curl_sec_client_mech { int (*auth)(void *, struct Curl_easy *data, struct connectdata *); void (*end)(void *); int (*check_prot)(void *, int); - int (*overhead)(void *, int, int); int (*encode)(void *, const void *, int, int, void **); int (*decode)(void *, void *, int, int, struct connectdata *); }; diff --git a/lib/krb5.c b/lib/krb5.c index 15dbd1f0a..4a9d40e9f 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -160,16 +160,6 @@ krb5_decode(void *app_data, void *buf, int len, } static int -krb5_overhead(void *app_data, int level, int len) -{ - /* no arguments are used */ - (void)app_data; - (void)level; - (void)len; - return 0; -} - -static int krb5_encode(void *app_data, const void *from, int length, int level, void **to) { gss_ctx_id_t *context = app_data; @@ -392,7 +382,7 @@ static struct Curl_sec_client_mech Curl_krb5_client_mech = { krb5_auth, krb5_end, krb5_check_prot, - krb5_overhead, + krb5_encode, krb5_decode }; @@ -657,8 +647,6 @@ static ssize_t sec_write(struct Curl_easy *data, struct connectdata *conn, { ssize_t tx = 0, len = conn->buffer_size; - len -= conn->mech->overhead(conn->app_data, conn->data_prot, - curlx_sztosi(len)); if(len <= 0) len = length; while(length) { |