summaryrefslogtreecommitdiffstats
path: root/lib/librpcsvc/xcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librpcsvc/xcrypt.c')
-rw-r--r--lib/librpcsvc/xcrypt.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/lib/librpcsvc/xcrypt.c b/lib/librpcsvc/xcrypt.c
index 7a310d3..17eec49 100644
--- a/lib/librpcsvc/xcrypt.c
+++ b/lib/librpcsvc/xcrypt.c
@@ -56,9 +56,7 @@ void passwd2des( char *, char * );
* Its length must be a multiple of 16 hex digits (64 bits).
*/
int
-xencrypt(secret, passwd)
- char *secret;
- char *passwd;
+xencrypt(char *secret, char *passwd)
{
char key[8];
char ivec[8];
@@ -91,9 +89,7 @@ xencrypt(secret, passwd)
* Once again, the length is a multiple of 16 hex digits
*/
int
-xdecrypt(secret, passwd)
- char *secret;
- char *passwd;
+xdecrypt(char *secret, char *passwd)
{
char key[8];
char ivec[8];
@@ -125,9 +121,7 @@ xdecrypt(secret, passwd)
* Turn password into DES key
*/
void
-passwd2des(pw, key)
- char *pw;
- char *key;
+passwd2des(char *pw, char *key)
{
int i;
@@ -144,10 +138,7 @@ passwd2des(pw, key)
* Hex to binary conversion
*/
static void
-hex2bin(len, hexnum, binnum)
- int len;
- char *hexnum;
- char *binnum;
+hex2bin(int len, char *hexnum, char *binnum)
{
int i;
@@ -160,10 +151,7 @@ hex2bin(len, hexnum, binnum)
* Binary to hex conversion
*/
static void
-bin2hex(len, binnum, hexnum)
- int len;
- unsigned char *binnum;
- char *hexnum;
+bin2hex(int len, unsigned char *binnum, char *hexnum)
{
int i;
unsigned val;
@@ -177,8 +165,7 @@ bin2hex(len, binnum, hexnum)
}
static char
-hexval(c)
- char c;
+hexval(char c)
{
if (c >= '0' && c <= '9') {
return (c - '0');
OpenPOWER on IntegriCloud