mirror of git://git.sysmocom.de/ofono
ppp: Make ppp_chap_process_packet const correct
This commit is contained in:
parent
955673573b
commit
87340d64e2
|
@ -96,7 +96,7 @@ void ipcp_free(struct pppcp_data *data);
|
|||
/* CHAP related functions */
|
||||
struct ppp_chap *ppp_chap_new(GAtPPP *ppp, guint8 method);
|
||||
void ppp_chap_free(struct ppp_chap *chap);
|
||||
void ppp_chap_process_packet(struct ppp_chap *chap, guint8 *new_packet);
|
||||
void ppp_chap_process_packet(struct ppp_chap *chap, const guint8 *new_packet);
|
||||
|
||||
/* TUN / Network related functions */
|
||||
struct ppp_net *ppp_net_new(GAtPPP *ppp);
|
||||
|
|
|
@ -54,9 +54,9 @@ enum chap_code {
|
|||
FAILURE
|
||||
};
|
||||
|
||||
static void chap_process_challenge(struct ppp_chap *chap, guint8 *packet)
|
||||
static void chap_process_challenge(struct ppp_chap *chap, const guint8 *packet)
|
||||
{
|
||||
struct chap_header *header = (struct chap_header *) packet;
|
||||
const struct chap_header *header = (const struct chap_header *) packet;
|
||||
struct chap_header *response;
|
||||
GChecksum *checksum;
|
||||
const char *secret = g_at_ppp_get_password(chap->ppp);
|
||||
|
@ -111,7 +111,7 @@ challenge_out:
|
|||
/*
|
||||
* parse the packet
|
||||
*/
|
||||
void ppp_chap_process_packet(struct ppp_chap *chap, guint8 *new_packet)
|
||||
void ppp_chap_process_packet(struct ppp_chap *chap, const guint8 *new_packet)
|
||||
{
|
||||
guint8 code = new_packet[0];
|
||||
|
||||
|
|
Loading…
Reference in New Issue