]> git.ozlabs.org Git - ppp.git/commitdiff
Enable printing of MS-CHAP and MS-CHAPv2 auth options always
authorPaul Mackerras <paulus@samba.org>
Sat, 6 Sep 2008 08:48:54 +0000 (18:48 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 6 Sep 2008 12:21:59 +0000 (22:21 +1000)
There's no need to have lcp_printpkt be ignorant of the MS-CHAP and
MS-CHAPV2 options.  Even if pppd doesn't support those protocols,
it's still useful if lcp_printpkt can tell us that the peer is
asking for them.  And it's one less ifdef this way.

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/lcp.c

index 995ba736f604b8dd8a72d2ece87291caad195a46..5c774909586ac44b46c13e73f7340ca2e4b000da 100644 (file)
@@ -2056,7 +2056,6 @@ lcp_printpkt(p, plen, printer, arg)
                                printer(arg, " MD5");
                                ++p;
                                break;
-#ifdef CHAPMS
                            case CHAP_MICROSOFT:
                                printer(arg, " MS");
                                ++p;
@@ -2066,7 +2065,6 @@ lcp_printpkt(p, plen, printer, arg)
                                printer(arg, " MS-v2");
                                ++p;
                                break;
-#endif
                            }
                        }
                        break;