mirror of https://github.com/moparisthebest/curl
parent
68f6c56396
commit
7843fe0a1b
|
@ -29,7 +29,6 @@ struct Curl_sec_client_mech {
|
||||||
int (*auth)(void *, struct Curl_easy *data, struct connectdata *);
|
int (*auth)(void *, struct Curl_easy *data, struct connectdata *);
|
||||||
void (*end)(void *);
|
void (*end)(void *);
|
||||||
int (*check_prot)(void *, int);
|
int (*check_prot)(void *, int);
|
||||||
int (*overhead)(void *, int, int);
|
|
||||||
int (*encode)(void *, const void *, int, int, void **);
|
int (*encode)(void *, const void *, int, int, void **);
|
||||||
int (*decode)(void *, void *, int, int, struct connectdata *);
|
int (*decode)(void *, void *, int, int, struct connectdata *);
|
||||||
};
|
};
|
||||||
|
|
14
lib/krb5.c
14
lib/krb5.c
|
@ -159,16 +159,6 @@ krb5_decode(void *app_data, void *buf, int len,
|
||||||
return len;
|
return 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
|
static int
|
||||||
krb5_encode(void *app_data, const void *from, int length, int level, void **to)
|
krb5_encode(void *app_data, const void *from, int length, int level, void **to)
|
||||||
{
|
{
|
||||||
|
@ -392,7 +382,7 @@ static struct Curl_sec_client_mech Curl_krb5_client_mech = {
|
||||||
krb5_auth,
|
krb5_auth,
|
||||||
krb5_end,
|
krb5_end,
|
||||||
krb5_check_prot,
|
krb5_check_prot,
|
||||||
krb5_overhead,
|
|
||||||
krb5_encode,
|
krb5_encode,
|
||||||
krb5_decode
|
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;
|
ssize_t tx = 0, len = conn->buffer_size;
|
||||||
|
|
||||||
len -= conn->mech->overhead(conn->app_data, conn->data_prot,
|
|
||||||
curlx_sztosi(len));
|
|
||||||
if(len <= 0)
|
if(len <= 0)
|
||||||
len = length;
|
len = length;
|
||||||
while(length) {
|
while(length) {
|
||||||
|
|
Loading…
Reference in New Issue