X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kerberos.c;h=141c9e3a390fee3776c0a50e64f1a6ceb3bb075f;hb=7f6138ffd4935043382ce5f867ee9e177e0a9787;hp=0eb51477d6ae843bc787e5a5b3104c3fbc14db75;hpb=d57b00768a8fa44d1e1c5f758440edabfa488baf;p=~andy%2Ffetchmail diff --git a/kerberos.c b/kerberos.c index 0eb51477..141c9e3a 100644 --- a/kerberos.c +++ b/kerberos.c @@ -32,7 +32,7 @@ typedef long int32; #error Cannot deduce a 32-bit-type #endif -int do_rfc1731(int sock, char *command, char *truename) +int do_rfc1731(int sock, const char *command, const char *truename) /* authenticate as per RFC1731 -- note 32-bit integer requirement here */ { int result = 0, len; @@ -241,15 +241,15 @@ int do_rfc1731(int sock, char *command, char *truename) while (authenticator.length & 7) { authenticator.length++; } - des_pcbc_encrypt((des_cblock *)authenticator.dat, - (des_cblock *)authenticator.dat, authenticator.length, schedule, + des_pcbc_encrypt((const unsigned char *)authenticator.dat, + (unsigned char *)authenticator.dat, authenticator.length, schedule, &session, 1); to64frombits(buf1, authenticator.dat, authenticator.length); /* ship down the response, accept the server's error/ok indication */ suppress_tags = TRUE; - result = gen_transact(sock, buf1, strlen(buf1)); + result = gen_transact(sock, "%s", buf1); suppress_tags = FALSE; if (result) return(result);