X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fuams%2Fuams_dhx_passwd.c;h=8b772b6c449ef465f950f6a82ef9b330090d65c3;hb=80fe6e63eb8ec9a396b4383cb8210fd5ded6ad35;hp=bc91aca60cf80599fd7f069a7658b0b2424d8985;hpb=57bbe088b549eb7b0189c90ad7e733b113ffcf28;p=netatalk.git diff --git a/etc/uams/uams_dhx_passwd.c b/etc/uams/uams_dhx_passwd.c index bc91aca6..8b772b6c 100644 --- a/etc/uams/uams_dhx_passwd.c +++ b/etc/uams/uams_dhx_passwd.c @@ -1,6 +1,4 @@ /* - * $Id: uams_dhx_passwd.c,v 1.29 2010-03-30 12:44:35 franklahm Exp $ - * * Copyright (c) 1990,1993 Regents of The University of Michigan. * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) * All Rights Reserved. See COPYRIGHT. @@ -20,22 +18,19 @@ #include #include #include -#ifdef HAVE_UNISTD_H #include -#endif /* HAVE_UNISTD_H */ #ifdef HAVE_CRYPT_H #include #endif /* ! HAVE_CRYPT_H */ -#ifdef HAVE_SYS_TIME_H #include -#endif -#ifdef HAVE_TIME_H #include -#endif #include +#include + #ifdef SHADOWPW #include #endif /* SHADOWPW */ + #if defined(GNUTLS_DHX) #include #elif defined(OPENSSL_DHX) @@ -64,7 +59,7 @@ /* the secret key */ static CAST_KEY castkey; static struct passwd *dhxpwd; -static u_int8_t randbuf[16]; +static uint8_t randbuf[16]; #ifdef TRU64 #include @@ -79,14 +74,14 @@ static int pwd_login(void *obj, char *username, int ulen, struct passwd **uam_pw char *rbuf, size_t *rbuflen) { unsigned char iv[] = "CJalbert"; - u_int8_t p[] = {0xBA, 0x28, 0x73, 0xDF, 0xB0, 0x60, 0x57, 0xD4, + uint8_t p[] = {0xBA, 0x28, 0x73, 0xDF, 0xB0, 0x60, 0x57, 0xD4, 0x3F, 0x20, 0x24, 0x74, 0x4C, 0xEE, 0xE7, 0x5B }; - u_int8_t g = 0x07; + uint8_t g = 0x07; #ifdef SHADOWPW struct spwd *sp; #endif /* SHADOWPW */ BIGNUM *bn, *gbn, *pbn; - u_int16_t sessid; + uint16_t sessid; size_t i; DH *dh; @@ -255,7 +250,7 @@ static int passwd_login_ext(void *obj, char *uname, struct passwd **uam_pwd, { char *username; size_t len, ulen; - u_int16_t temp16; + uint16_t temp16; *rbuflen = 0; @@ -285,7 +280,7 @@ static int passwd_logincont(void *obj, struct passwd **uam_pwd, #endif /* SHADOWPW */ unsigned char iv[] = "LWallace"; BIGNUM *bn1, *bn2, *bn3; - u_int16_t sessid; + uint16_t sessid; char *p; int err = AFPERR_NOTAUTH;