Skip to content

Commit

Permalink
CPP Client - Athens Client header visibile and remove C++11 features (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
jai1 authored Nov 3, 2017
1 parent a0c98eb commit a1a479b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pulsar-client-cpp/lib/auth/AuthAthenz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ namespace pulsar {
Json::Value root;
Json::Reader reader;
if (reader.parse(authParamsString, root, false)) {
for (auto key: root.getMemberNames()) {
params[key] = root[key].asString();
Json::Value::Members members = root.getMemberNames();
for (Json::Value::Members::iterator iter = members.begin(); iter != members.end(); iter++) {
params[*iter] = root[*iter].asString();
}
} else {
LOG_ERROR("Invalid String Error: " << reader.getFormatedErrorMessages());
Expand Down
2 changes: 1 addition & 1 deletion pulsar-client-cpp/lib/auth/athenz/ZTSClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace pulsar {
size_t length = strlen(input);
char *result = (char*)malloc(length);

bio = BIO_new_mem_buf(input, -1);
bio = BIO_new_mem_buf((void *)input, -1);
b64 = BIO_new(BIO_f_base64());
bio = BIO_push(b64, bio);

Expand Down
2 changes: 2 additions & 0 deletions pulsar-client-cpp/lib/auth/athenz/ZTSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <map>
#include <lib/LogUtils.h>
#include <boost/thread.hpp>
#pragma GCC visibility push(default)

namespace pulsar {

Expand Down Expand Up @@ -61,3 +62,4 @@ namespace pulsar {
friend class ZTSClientWrapper;
};
}
#pragma GCC visibility pop

0 comments on commit a1a479b

Please sign in to comment.