X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmagic.h;h=9d399e307a5fe252321039b708053018054242b8;hb=HEAD;hp=38718fb5b955662e0fd47c12ee4fbb360754c3fe;hpb=f53a48eb9d74db3c71938e114b7f489c339bc003;p=ppp.git diff --git a/pppd/magic.h b/pppd/magic.h index 38718fb..68cbf9b 100644 --- a/pppd/magic.h +++ b/pppd/magic.h @@ -38,9 +38,24 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * $Id: magic.h,v 1.4 2002/12/04 23:03:32 paulus Exp $ */ +#ifndef PPP_MAGIC_H +#define PPP_MAGIC_H + +#include "pppdconf.h" + +#ifdef __cplusplus +extern "C" { +#endif + +void magic_init (void); /* Initialize the magic number generator */ +u_int32_t magic (void); /* Returns the next magic number */ + +/* Fill buffer with random bytes */ +void random_bytes (unsigned char *buf, int len); + +#ifdef __cplusplus +} +#endif -void magic_init __P((void)); /* Initialize the magic number generator */ -u_int32_t magic __P((void)); /* Returns the next magic number */ +#endif // PPP_MAGIC_H