X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmagic.h;h=70e4ce528238390da2367aab47b01a3e075fe9b4;hb=607d8eadccfd62c1fa84a36bd1440bd48b4e55ca;hp=38718fb5b955662e0fd47c12ee4fbb360754c3fe;hpb=f53a48eb9d74db3c71938e114b7f489c339bc003;p=ppp.git diff --git a/pppd/magic.h b/pppd/magic.h index 38718fb..70e4ce5 100644 --- a/pppd/magic.h +++ b/pppd/magic.h @@ -38,9 +38,16 @@ * 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" + +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); -void magic_init __P((void)); /* Initialize the magic number generator */ -u_int32_t magic __P((void)); /* Returns the next magic number */ +#endif