Lines Matching defs:io_pProfile
1237 static bool EnrollAgent( KMSClientProfile * io_pProfile,
1241 FATAL_ASSERT( io_pProfile && i_wsEntityID && i_wsPassphrase );
1252 io_pProfile,
1262 strncpy(io_pProfile->m_sHexHashedPassphrase,
1265 io_pProfile->m_sHexHashedPassphrase[2*KMS_MAX_HASH_SIZE] = 0;
1268 bSuccess = StoreConfig( io_pProfile );
1287 KMSClientProfile *io_pProfile,
1297 FATAL_ASSERT(io_pProfile);
1309 memset( io_pProfile, 0, sizeof(KMSClientProfile) );
1316 ( K_CreateMutex((K_MUTEX_HANDLE *)&io_pProfile->m_pLock) ==
1322 strncpy(io_pProfile->m_wsProfileName,
1325 io_pProfile->m_wsProfileName[KMS_MAX_ENTITY_ID] = 0;
1327 io_pProfile->m_iPortForCAService =
1329 io_pProfile->m_iPortForCertificateService =
1331 io_pProfile->m_iPortForDiscoveryService =
1333 io_pProfile->m_iPortForAgentService =
1335 strncpy(io_pProfile->m_wsApplianceAddress,
1338 io_pProfile->m_wsApplianceAddress[KMS_MAX_NETWORK_ADDRESS] = 0;
1339 io_pProfile->m_iClusterDiscoveryFrequency = i_iClusterDiscoveryFrequency;
1340 io_pProfile->m_iTransactionTimeout = i_iTransactionTimeout;
1341 io_pProfile->m_iFailoverLimit = i_iFailOverLimit;
1342 io_pProfile->m_eKMSmode = i_eKMSmode;
1346 io_pProfile->m_wsProfileName );
1356 bool bEnrolling = !ClientKeyP12Exists(io_pProfile->m_wsProfileName);
1374 strncpy(io_pProfile->m_wsEntityID,
1377 io_pProfile->m_wsEntityID[KMS_MAX_ENTITY_ID] = 0;
1378 bSuccess = CreateProfile( io_pProfile,
1380 io_pProfile->m_wsProfileName );
1386 bSuccess = GetConfig( io_pProfile );
1392 ( strncmp(io_pProfile->m_wsApplianceAddress,
1394 io_pProfile->m_iClusterDiscoveryFrequency != i_iClusterDiscoveryFrequency ||
1395 io_pProfile->m_iTransactionTimeout != i_iTransactionTimeout ||
1396 io_pProfile->m_iFailoverLimit != i_iFailOverLimit
1399 strncpy(io_pProfile->m_wsApplianceAddress,
1402 io_pProfile->m_wsApplianceAddress[KMS_MAX_NETWORK_ADDRESS] = 0;
1403 io_pProfile->m_iClusterDiscoveryFrequency = i_iClusterDiscoveryFrequency;
1404 io_pProfile->m_iTransactionTimeout = i_iTransactionTimeout;
1405 io_pProfile->m_iFailoverLimit = i_iFailOverLimit;
1407 bSuccess = StoreConfig( io_pProfile );
1422 bSuccess = GetPKCS12CertAndKey(io_pProfile,
1437 bSuccess = StoreTempAgentPKI(io_pProfile,
1452 bSuccess = GetPKIcerts( io_pProfile );
1457 (!io_pProfile->m_sHexHashedPassphrase ||
1458 !io_pProfile->m_iEnrolled ))
1467 io_pProfile->m_bIsClusterDiscoveryCalled = false;
1476 io_pProfile->m_pvSoap = pstSoap;
1492 pstSoap->connect_timeout = io_pProfile->m_iTransactionTimeout;
1493 pstSoap->send_timeout = io_pProfile->m_iTransactionTimeout;
1494 pstSoap->recv_timeout = io_pProfile->m_iTransactionTimeout;
1532 memcpy( pstTempProfile, io_pProfile, sizeof(KMSClientProfile) );
1546 io_pProfile->m_wsApplianceAddress,
1568 io_pProfile->m_wsApplianceAddress);
1578 io_pProfile->m_iClusterNum = pstTempProfile->m_iClusterNum;
1579 memcpy(io_pProfile->m_aCluster,
1581 sizeof(KMSClusterEntry)*io_pProfile->m_iClusterNum);
1598 if ( bSuccess && !io_pProfile->m_iEnrolled )
1604 bSuccess = EnrollAgent( io_pProfile,
1609 else if (io_pProfile->m_iEnrolled)
1619 // the profile io_pProfile to be full (have the other certificates
1626 io_pProfile, // in/out
1640 LogError(io_pProfile,
1651 io_pProfile->m_iClusterDiscoveryFrequency > 0 )
1654 io_pProfile,
1655 io_pProfile->m_wsEntitySiteID,
1656 sizeof(io_pProfile->m_wsEntitySiteID),
1657 &(io_pProfile->m_iClusterNum),
1658 io_pProfile->m_aCluster,
1664 bSuccess = !KMSClient_NoFIPSCompatibleKMAs(io_pProfile);
1667 LogError(io_pProfile,
1685 (void) CleanupPrivateKeyFile(io_pProfile);
1693 CAgentLoadBalancer *pAgentLoadBalancer = new CAgentLoadBalancer(io_pProfile);
1704 io_pProfile->m_pAgentLoadBalancer = pAgentLoadBalancer;
1710 io_pProfile->m_pDataUnitCache = new CDataUnitCache();
1712 bSuccess = ( io_pProfile->m_pDataUnitCache != NULL );
1720 log_printf ("KMSClient_LoadProfile : profile is: %x\n", io_pProfile);
1724 io_pProfile->m_iVersion = KMS_AGENT_VERSION;
1729 K_DestroyMutex((K_MUTEX_HANDLE)io_pProfile->m_pLock);
1730 io_pProfile->m_pLock = 0;
1732 if ( io_pProfile->m_pvSoap )
1734 soap_destroy( (struct soap*)io_pProfile->m_pvSoap );
1735 soap_end( (struct soap*)io_pProfile->m_pvSoap );
1736 soap_done( (struct soap*)io_pProfile->m_pvSoap );
1738 free( (struct soap*)io_pProfile->m_pvSoap );
1739 io_pProfile->m_pvSoap = 0;
1741 if( io_pProfile->m_pAgentLoadBalancer != NULL)
1743 delete(reinterpret_cast <CAgentLoadBalancer *>(io_pProfile->m_pAgentLoadBalancer));
1746 if( io_pProfile->m_pDataUnitCache != NULL)
1748 delete(reinterpret_cast <CDataUnitCache *>(io_pProfile->m_pDataUnitCache));