Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2000 15:01:01 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        dgilbert@velocet.ca (David Gilbert)
Cc:        freebsd-stable@freebsd.org, hackers@freebsd.org, archie@whistle.com (Archie Cobbs)
Subject:   Re: MD5 usage in the kernel.
Message-ID:  <200004202201.PAA98814@bubba.whistle.com>
In-Reply-To: <14591.25172.361989.676550@trooper.velocet.net> from David Gilbert at "Apr 20, 2000 04:02:28 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
David Gilbert writes:
> I'm working on an l2tp netgraph node.  I need md5.  Specifically, the
> RFC says:
> 
>       The Response is a 16 octet value reflecting the CHAP-style
>       [RFC1994] response to the challenge.
> 
> I've had a look at md5.c, but there is no documentation on the usage
> md5.  In this specific case, how do I call it?

MD5 is included in the kernel by default. So just call the
same routines shown in the md5(3) man page... they're declared
in /sys/crypto/md5.h, which you should #include in your C file(s).

> If CHAP uses MD5, how does ng_ppp or kernel ppp handle this (or does
> it)?

In the ng_ppp case, in user-land where all PPP negotiation takes place.
For kernel PPP, in the kernel -- see sys/net/if_spppsubr.c.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004202201.PAA98814>