]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/chap-new.h
pppd: Add support for registering ppp interface via Linux rtnetlink API
[ppp.git] / pppd / chap-new.h
index 665e78fb19a99a26ab0b44ade689a1fb20787c71..b4b0ee23eb6d5bf6121e842d236a1e2214a745bb 100644 (file)
@@ -28,6 +28,8 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "pppdconf.h"
+
 /*
  * CHAP packets begin with a standard header with code, id, len (2 bytes).
  */
@@ -120,6 +122,9 @@ extern int (*chap_verify_hook)(char *name, char *ourname, int id,
 /* Called by digest code to register a digest type */
 extern void chap_register_digest(struct chap_digest_type *);
 
+/* Lookup a digest handler by type */
+extern struct chap_digest_type *chap_find_digest(int digest_code);
+
 /* Called by authentication code to start authenticating the peer. */
 extern void chap_auth_peer(int unit, char *our_name, int digest_code);