X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmppe.h;h=2684a7f6fe85801b44eb978faa5a88567a040ba5;hp=9292fe8dd623cd8bd599b4710816a3bd80160ef9;hb=HEAD;hpb=ba7f7e053daae846a54a1d08d3d133a5f1266ace diff --git a/pppd/mppe.h b/pppd/mppe.h index 9292fe8..8ff27b9 100644 --- a/pppd/mppe.h +++ b/pppd/mppe.h @@ -1,7 +1,7 @@ /* * mppe.h - Definitions for MPPE * - * Copyright (c) 2008 Paul Mackerras. All rights reserved. + * Copyright (c) 2008-2024 Paul Mackerras. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -15,15 +15,6 @@ * the documentation and/or other materials provided with the * distribution. * - * 3. The name(s) of the authors of this software must not be used to - * endorse or promote products derived from this software without - * prior written permission. - * - * 4. Redistributions of any form whatsoever must retain the following - * acknowledgment: - * "This product includes software developed by Paul Mackerras - * ". - * * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY @@ -37,6 +28,11 @@ #include "pppdconf.h" +#ifdef __cplusplus +extern "C" { +#endif + + #define MPPE_PAD 4 /* MPPE growth per frame */ #define MPPE_MAX_KEY_SIZE 32 /* Largest key length */ #define MPPE_MAX_KEY_LEN 16 /* Largest key size accepted by the kernel */ @@ -175,4 +171,9 @@ void mppe_set_chapv2(unsigned char *PasswordHashHash, unsigned char *NTResponse, int IsServer); #endif // #ifdef PPP_WITH_MPPE + +#ifdef __cplusplus +} +#endif + #endif // #ifdef PPP_MPPE_H