diff options
Diffstat (limited to 'radix.c')
-rw-r--r-- | radix.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,10 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * radix.c | 2 | * radix.c |
3 | * | 3 | * |
4 | * base-64 encoding pinched from lynx2-7-2, who pinched it from rpem. | 4 | * base-64 encoding pinched from lynx2-7-2, who pinched it from rpem. |
5 | * Originally written by Mark Riordan 12 August 1990 and 17 Feb 1991 | 5 | * Originally written by Mark Riordan 12 August 1990 and 17 Feb 1991 |
6 | * and placed in the public domain. | 6 | * and placed in the public domain. |
7 | * | 7 | * |
8 | * Dug Song <dugsong@UMICH.EDU> | 8 | * Dug Song <dugsong@UMICH.EDU> |
9 | */ | 9 | */ |
10 | 10 | ||
@@ -23,7 +23,7 @@ char six2pr[64] = { | |||
23 | 23 | ||
24 | unsigned char pr2six[256]; | 24 | unsigned char pr2six[256]; |
25 | 25 | ||
26 | int | 26 | int |
27 | uuencode(unsigned char *bufin, unsigned int nbytes, char *bufcoded) | 27 | uuencode(unsigned char *bufin, unsigned int nbytes, char *bufcoded) |
28 | { | 28 | { |
29 | /* ENC is the basic 1 character encoding function to make a char printing */ | 29 | /* ENC is the basic 1 character encoding function to make a char printing */ |
@@ -49,7 +49,7 @@ uuencode(unsigned char *bufin, unsigned int nbytes, char *bufcoded) | |||
49 | return (outptr - bufcoded); | 49 | return (outptr - bufcoded); |
50 | } | 50 | } |
51 | 51 | ||
52 | int | 52 | int |
53 | uudecode(const char *bufcoded, unsigned char *bufplain, int outbufsize) | 53 | uudecode(const char *bufcoded, unsigned char *bufplain, int outbufsize) |
54 | { | 54 | { |
55 | /* single character decode */ | 55 | /* single character decode */ |
@@ -162,7 +162,7 @@ typedef unsigned short my_u_short; | |||
162 | } | 162 | } |
163 | 163 | ||
164 | 164 | ||
165 | int | 165 | int |
166 | creds_to_radix(CREDENTIALS *creds, unsigned char *buf) | 166 | creds_to_radix(CREDENTIALS *creds, unsigned char *buf) |
167 | { | 167 | { |
168 | char *p, *s; | 168 | char *p, *s; |
@@ -216,7 +216,7 @@ creds_to_radix(CREDENTIALS *creds, unsigned char *buf) | |||
216 | return (uuencode((unsigned char *)temp, len, (char *)buf)); | 216 | return (uuencode((unsigned char *)temp, len, (char *)buf)); |
217 | } | 217 | } |
218 | 218 | ||
219 | int | 219 | int |
220 | radix_to_creds(const char *buf, CREDENTIALS *creds) | 220 | radix_to_creds(const char *buf, CREDENTIALS *creds) |
221 | { | 221 | { |
222 | 222 | ||