]> Pileus Git - ~andy/fetchmail/blobdiff - kerberos.c
Update German translation.
[~andy/fetchmail] / kerberos.c
index 0eb51477d6ae843bc787e5a5b3104c3fbc14db75..141c9e3a390fee3776c0a50e64f1a6ceb3bb075f 100644 (file)
@@ -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);