autoselecting which PolarSSL files to use support added

This commit is contained in:
Sylvain Rochet
2012-06-01 01:10:02 +02:00
parent 8bb4ea85b8
commit a17ea13453
7 changed files with 63 additions and 32 deletions

View File

@@ -1,26 +0,0 @@
#ifndef CBCP_H
#define CBCP_H
typedef struct cbcp_state {
int us_unit; /* Interface unit number */
u_char us_id; /* Current id */
u_char us_allowed;
int us_type;
char *us_number; /* Telefone Number */
} cbcp_state;
extern cbcp_state cbcp[];
extern struct protent cbcp_protent;
#define CBCP_MINLEN 4
#define CBCP_REQ 1
#define CBCP_RESP 2
#define CBCP_ACK 3
#define CB_CONF_NO 1
#define CB_CONF_USER 2
#define CB_CONF_ADMIN 3
#define CB_CONF_LIST 4
#endif

View File

@@ -73,7 +73,6 @@
*****************************************************************************/
#include "lwip/opt.h"
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
#include "polarssl/md5.h"

View File

@@ -78,7 +78,6 @@
#define MAGIC_H
#include "lwip/opt.h"
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
/***********************

View File

@@ -1,2 +0,0 @@
#define VERSION "2.4.5"
#define DATE "17 November 2009"

View File

@@ -31,8 +31,7 @@
*/
#include "lwip/opt.h"
/* FIXME: dont include if not needed */
#if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not necessary */
#include "pppd.h"
#include "pppcrypt.h"
@@ -62,3 +61,5 @@ void pppcrypt_56_to_64_bit_key(u_char *key, u_char * des_key) {
des_key[6] = pppcrypt_get_7bits(key, 42);
des_key[7] = pppcrypt_get_7bits(key, 49);
}
#endif /* PPP_SUPPORT && MSCHAP_SUPPORT */

View File

@@ -30,9 +30,14 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "lwip/opt.h"
#if PPP_SUPPORT && MSCHAP_SUPPORT /* don't build if not configured for use in lwipopts.h */
#ifndef PPPCRYPT_H
#define PPPCRYPT_H
void pppcrypt_56_to_64_bit_key(u_char *key, u_char *des_key);
#endif /* PPPCRYPT_H */
#endif /* PPP_SUPPORT && MSCHAP_SUPPORT */