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.
This commit is contained in:
Michael Davidsaver
2017-05-07 20:26:00 -04:00
parent 4ce60c9797
commit 269f828733

View File

@@ -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 );