forked from Imagelibrary/rtems
Misc. minor fixes.
This commit is contained in:
@@ -19,8 +19,8 @@ endif
|
||||
|
||||
all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
|
||||
|
||||
CLEANFILES = $(PREINSTALL_FILES)
|
||||
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||
CLEANFILES =
|
||||
DISTCLEANFILES =
|
||||
|
||||
include $(srcdir)/preinstall.am
|
||||
|
||||
|
||||
@@ -853,7 +853,7 @@ get_secret(unit, client, server, secret, secret_len, am_server)
|
||||
int unit;
|
||||
char *client;
|
||||
char *server;
|
||||
char *secret;
|
||||
unsigned char *secret;
|
||||
int *secret_len;
|
||||
int am_server;
|
||||
{
|
||||
|
||||
@@ -403,7 +403,7 @@ ChapReceiveChallenge(cstate, inp, id, len)
|
||||
int rchallenge_len;
|
||||
u_char *rchallenge;
|
||||
int secret_len;
|
||||
char secret[MAXSECRETLEN];
|
||||
unsigned char secret[MAXSECRETLEN];
|
||||
char rhostname[256];
|
||||
MD5_CTX mdContext;
|
||||
u_char hash[MD5_SIGNATURE_SIZE];
|
||||
@@ -498,7 +498,7 @@ ChapReceiveResponse(cstate, inp, id, len)
|
||||
int code;
|
||||
char rhostname[256];
|
||||
MD5_CTX mdContext;
|
||||
char secret[MAXSECRETLEN];
|
||||
unsigned char secret[MAXSECRETLEN];
|
||||
u_char hash[MD5_SIGNATURE_SIZE];
|
||||
|
||||
if (cstate->serverstate == CHAPSS_CLOSED ||
|
||||
|
||||
@@ -122,7 +122,7 @@ MD5_CTX *mdContext;
|
||||
*/
|
||||
void MD5Update (mdContext, inBuf, inLen)
|
||||
MD5_CTX *mdContext;
|
||||
unsigned char *inBuf;
|
||||
const unsigned char *inBuf;
|
||||
unsigned int inLen;
|
||||
{
|
||||
UINT4 in[16];
|
||||
|
||||
@@ -39,8 +39,10 @@
|
||||
|
||||
#ifndef __MD5_INCLUDE__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* typedef a 32-bit type */
|
||||
typedef unsigned int UINT4;
|
||||
typedef uint32_t UINT4;
|
||||
|
||||
/* Data structure for MD5 (Message-Digest) computation */
|
||||
typedef struct {
|
||||
@@ -50,9 +52,9 @@ typedef struct {
|
||||
unsigned char digest[16]; /* actual digest after MD5Final call */
|
||||
} MD5_CTX;
|
||||
|
||||
void MD5Init ();
|
||||
void MD5Update ();
|
||||
void MD5Final ();
|
||||
void MD5Init (MD5_CTX *);
|
||||
void MD5Update (MD5_CTX *, const unsigned char *, unsigned int);
|
||||
void MD5Final (unsigned char [16], MD5_CTX *);
|
||||
|
||||
#define __MD5_INCLUDE__
|
||||
#endif /* __MD5_INCLUDE__ */
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <sys/types.h> /* for u_int32_t, if defined */
|
||||
#include <sys/time.h> /* for struct timeval */
|
||||
#include <net/ppp_defs.h>
|
||||
#include "rtemsdialer.h"
|
||||
#include <rtems/rtemsdialer.h>
|
||||
|
||||
#if defined(__STDC__)
|
||||
#include <stdarg.h>
|
||||
@@ -343,7 +343,7 @@ int auth_check_options __P((void));
|
||||
void auth_reset __P((int)); /* check what secrets we have */
|
||||
int check_passwd __P((int, char *, int, char *, int, char **));
|
||||
/* Check peer-supplied username/password */
|
||||
int get_secret __P((int, char *, char *, char *, int *, int));
|
||||
int get_secret __P((int, char *, char *, unsigned char *, int *, int));
|
||||
/* get "secret" for chap */
|
||||
int auth_ip_addr __P((int, u_int32_t));
|
||||
/* check if IP address is authorized */
|
||||
|
||||
Reference in New Issue
Block a user