X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmppe.h;h=f1c53c3201d1808d5533c61acd5d3ea745e1c792;hb=76016e1b948b7d9675b4e0750d1f943d96d9523b;hp=bf86e1971daabf268dba5ee740d61c5c0406e174;hpb=e8676075aea6d278f435d5ce83d9b6aa216a1ecb;p=ppp.git diff --git a/pppd/mppe.h b/pppd/mppe.h index bf86e19..f1c53c3 100644 --- a/pppd/mppe.h +++ b/pppd/mppe.h @@ -32,10 +32,10 @@ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "pppdconf.h" +#ifndef PPP_MPPE_H +#define PPP_MPPE_H -#ifndef __MPPE_H__ -#define __MPPE_H__ +#include "pppdconf.h" #define MPPE_PAD 4 /* MPPE growth per frame */ #define MPPE_MAX_KEY_SIZE 32 /* Largest key length */ @@ -179,13 +179,13 @@ bool mppe_keys_isset(void); /* * Set mppe_xxxx_key from NT Password Hash Hash (MSCHAPv1), see RFC3079 */ -void mppe_set_chapv1(u_char *rchallenge, u_char PasswordHashHash[MD4_SIGNATURE_SIZE]); +void mppe_set_chapv1(unsigned char *rchallenge, unsigned char *PasswordHashHash); /* * Set the mppe_xxxx_key from MS-CHAP-v2 credentials, see RFC3079 */ -void mppe_set_chapv2(u_char PasswordHashHash[MD4_SIGNATURE_SIZE], - u_char NTResponse[MS_AUTH_NTRESP_LEN], int IsServer); +void mppe_set_chapv2(unsigned char *PasswordHashHash, + unsigned char *NTResponse, int IsServer); #endif // #ifdef PPP_WITH_MPPE -#endif // #ifdef __MPPE_H__ +#endif // #ifdef PPP_MPPE_H