mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-28 23:10:02 +00:00
Increase authentication URL sizes.
This commit is contained in:
parent
75d17ea3c8
commit
1dfe909bab
@ -1340,7 +1340,7 @@ void EmbeddedNetworkController::_request(
|
|||||||
if ((authenticationExpiryTime == 0) || (authenticationExpiryTime < now)) {
|
if ((authenticationExpiryTime == 0) || (authenticationExpiryTime < now)) {
|
||||||
std::string authenticationURL = _db.getSSOAuthURL(member);
|
std::string authenticationURL = _db.getSSOAuthURL(member);
|
||||||
if (!authenticationURL.empty()) {
|
if (!authenticationURL.empty()) {
|
||||||
Dictionary<1024> authInfo;
|
Dictionary<3072> authInfo;
|
||||||
authInfo.add("aU", authenticationURL.c_str());
|
authInfo.add("aU", authenticationURL.c_str());
|
||||||
fprintf(stderr, "sending auth URL: %s\n", authenticationURL.c_str());
|
fprintf(stderr, "sending auth URL: %s\n", authenticationURL.c_str());
|
||||||
DB::cleanMember(member);
|
DB::cleanMember(member);
|
||||||
|
@ -200,8 +200,8 @@ bool IncomingPacket::_doERROR(const RuntimeEnvironment *RR,void *tPtr,const Shar
|
|||||||
const uint16_t errorDataSize = at<uint16_t>(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 8);
|
const uint16_t errorDataSize = at<uint16_t>(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 8);
|
||||||
s -= 2;
|
s -= 2;
|
||||||
if (s >= (int)errorDataSize) {
|
if (s >= (int)errorDataSize) {
|
||||||
Dictionary<1024> authInfo(((const char *)this->data()) + (ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 10), errorDataSize);
|
Dictionary<3072> authInfo(((const char *)this->data()) + (ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 10), errorDataSize);
|
||||||
char authenticationURL[256];
|
char authenticationURL[2048];
|
||||||
if (authInfo.get("aU", authenticationURL, sizeof(authenticationURL)) > 0) {
|
if (authInfo.get("aU", authenticationURL, sizeof(authenticationURL)) > 0) {
|
||||||
authenticationURL[sizeof(authenticationURL) - 1] = 0; // ensure always zero terminated
|
authenticationURL[sizeof(authenticationURL) - 1] = 0; // ensure always zero terminated
|
||||||
network->setAuthenticationRequired(authenticationURL);
|
network->setAuthenticationRequired(authenticationURL);
|
||||||
|
@ -612,7 +612,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Authentication URL if authentication is required
|
* Authentication URL if authentication is required
|
||||||
*/
|
*/
|
||||||
char authenticationURL[256];
|
char authenticationURL[2048];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Time current authentication expires or -1 if external authentication is disabled
|
* Time current authentication expires or -1 if external authentication is disabled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user