X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a039749b4c21e3439dc06fcdd5355828f1f95463..6ed6d7f5a8703d1d8702015c6a46d2ea4ee6be07:/authenticate.c diff --git a/authenticate.c b/authenticate.c index 842a59ee..d1ffca62 100644 --- a/authenticate.c +++ b/authenticate.c @@ -1,5 +1,6 @@ -/* - Copyright (C) Andrew Tridgell 1998 +/* -*- c-file-style: "linux"; -*- + + Copyright (C) 1998-2000 by Andrew Tridgell This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +24,7 @@ encode a buffer using base64 - simple and slow algorithm. null terminates the result. ***************************************************************************/ -static void base64_encode(char *buf, int len, char *out) +void base64_encode(char *buf, int len, char *out) { char *b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int bit_offset, byte_offset, idx, i; @@ -32,7 +33,7 @@ static void base64_encode(char *buf, int len, char *out) memset(out, 0, bytes+1); - for (i=0;i