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