From 269f8287337ba50bbcd5aed2152cf5ff4fa832f4 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 7 May 2017 20:26:00 -0400 Subject: [PATCH] ca: assume that CA name servers have minor version >=12 Assume that servers listed in EPICS_CA_NAME_SERVERS support CA >=12, practically >=1 to support the authentication messages. --- src/ca/client/cac.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ca/client/cac.cpp b/src/ca/client/cac.cpp index a7430e406..5748353bd 100644 --- a/src/ca/client/cac.cpp +++ b/src/ca/client/cac.cpp @@ -265,9 +265,14 @@ cac::cac ( tcpiiu * piiu = NULL; SearchDestTCP * pdst = new SearchDestTCP ( *this, pNode->addr ); this->registerSearchDest ( guard, * pdst ); + /* Initially assume that servers listed in EPICS_CA_NAME_SERVERS support at least minor + * version 11. This causes tcpiiu to send the user and host name authentication + * messages. When the actual Version message is received from the server it will + * be overwrite this assumption. + */ bool newIIU = findOrCreateVirtCircuit ( guard, pNode->addr, cacChannel::priorityDefault, - piiu, CA_UKN_MINOR_VERSION, pdst ); + piiu, 11, pdst ); free ( pNode ); if ( newIIU ) { piiu->start ( guard );