win visibility attributes

This commit is contained in:
Matej Sekoranja
2014-09-11 21:30:42 +02:00
parent 2b118dac81
commit e2facc2eac
4 changed files with 30 additions and 16 deletions

View File

@@ -50,3 +50,26 @@ CAClientSecurityPlugin::CAClientSecurityPlugin()
m_userAndHost->getSubField<PVString>("host")->put(buffer);
}
void AuthNZHandler::handleResponse(osiSockAddr* responseFrom,
Transport::shared_pointer const & transport,
epics::pvData::int8 version,
epics::pvData::int8 command,
size_t payloadSize,
epics::pvData::ByteBuffer* payloadBuffer)
{
AbstractResponseHandler::handleResponse(responseFrom, transport, version, command, payloadSize, payloadBuffer);
epics::pvData::PVField::shared_pointer data =
SerializationHelper::deserializeFull(payloadBuffer, transport.get());
transport->authNZMessage(data);
}
SecurityPluginRegistry::SecurityPluginRegistry() {
// install CA client security plugin by default
installClientSecurityPlugin(CAClientSecurityPlugin::INSTANCE);
}

View File

@@ -46,7 +46,7 @@ namespace epics {
// when clients gets initial credentialsChanged call before create is called
// and then on each change
class ChannelSecuritySession {
class epicsShareClass ChannelSecuritySession {
public:
POINTER_DEFINITIONS(ChannelSecuritySession);
@@ -431,15 +431,7 @@ namespace epics {
epics::pvData::int8 version,
epics::pvData::int8 command,
size_t payloadSize,
epics::pvData::ByteBuffer* payloadBuffer)
{
AbstractResponseHandler::handleResponse(responseFrom, transport, version, command, payloadSize, payloadBuffer);
epics::pvData::PVField::shared_pointer data =
SerializationHelper::deserializeFull(payloadBuffer, transport.get());
transport->authNZMessage(data);
}
epics::pvData::ByteBuffer* payloadBuffer);
};
class epicsShareClass SecurityPluginRegistry :
@@ -476,10 +468,7 @@ namespace epics {
}
private:
SecurityPluginRegistry() {
// install CA client security plugin by default
installClientSecurityPlugin(CAClientSecurityPlugin::INSTANCE);
}
SecurityPluginRegistry();
std::map<std::string, std::tr1::shared_ptr<SecurityPlugin> > m_clientSecurityPlugins;
std::map<std::string, std::tr1::shared_ptr<SecurityPlugin> > m_serverSecurityPlugins;

View File

@@ -4,9 +4,11 @@
* in file LICENSE that is included with this distribution.
*/
#include <pv/convert.h>
#define epicsExportSharedSymbols
#include <pv/serializationHelper.h>
#include <pv/introspectionRegistry.h>
#include <pv/convert.h>
using namespace epics::pvData;

View File

@@ -30,7 +30,7 @@
namespace epics {
namespace pvAccess {
class SerializationHelper : public epics::pvData::NoDefaultMethods {
class epicsShareClass SerializationHelper : public epics::pvData::NoDefaultMethods {
public:
static epics::pvData::PVDataCreatePtr _pvDataCreate;