INN commit: trunk (innd/nc.c nnrpd/nnrpd.c)
INN Commit
rra at isc.org
Sat May 28 18:13:29 UTC 2016
Date: Saturday, May 28, 2016 @ 11:13:29
Author: iulius
Revision: 10035
Advertise XBATCH and XPAT in the capabilities list
Modified:
trunk/innd/nc.c
trunk/nnrpd/nnrpd.c
---------------+
innd/nc.c | 5 +++++
nnrpd/nnrpd.c | 4 ++++
2 files changed, 9 insertions(+)
Modified: innd/nc.c
===================================================================
--- innd/nc.c 2016-05-28 18:11:38 UTC (rev 10034)
+++ innd/nc.c 2016-05-28 18:13:29 UTC (rev 10035)
@@ -622,6 +622,11 @@
WCHANappend(cp, NCterm, strlen(NCterm));
}
+ if (cp->IsAuthenticated) {
+ WCHANappend(cp, "XBATCH", 6);
+ WCHANappend(cp, NCterm, strlen(NCterm));
+ }
+
NCwritereply(cp, NCdot);
}
Modified: nnrpd/nnrpd.c
===================================================================
--- nnrpd/nnrpd.c 2016-05-28 18:11:38 UTC (rev 10034)
+++ nnrpd/nnrpd.c 2016-05-28 18:13:29 UTC (rev 10035)
@@ -492,6 +492,10 @@
}
#endif /* HAVE_OPENSSL */
+ if (PERMcanread) {
+ Printf("XPAT\r\n");
+ }
+
Printf(".\r\n");
}
More information about the inn-committers
mailing list