This commit is contained in:
Adam Ierymenko 2019-08-12 13:27:07 -07:00
commit f5e71f64ed
No known key found for this signature in database
GPG Key ID: 1657198823E52A61
3 changed files with 10 additions and 3 deletions

View File

@ -125,3 +125,7 @@ endif(BUILD_CENTRAL_CONTROLLER)
add_executable(${PROJECT_NAME} ${src} ${headers})
target_link_libraries(${PROJECT_NAME} ${libs})
add_executable(zerotier-selftest selftest.cpp)
target_link_libraries(zerotier-selftest ${libs})

6
Jenkinsfile vendored
View File

@ -14,10 +14,12 @@ parallel 'centos7': {
checkout scm
stage('Build Centos 7') {
sh '''rm -rf build/
sh '''. /opt/rh/devtoolset-8/enable
rm -rf build/
mkdir build && cd build
CC=clang CXX=clang++ cmake ..
cmake ..
make -j4
./zerotier-selftest
'''
}
}

View File

@ -243,7 +243,7 @@ char *Identity::toString(bool includePrivate,char buf[ZT_IDENTITY_STRING_BUFFER_
}
*p = (char)0;
return buf;
}
} break;
case P384: {
char *p = buf;
Utils::hex10(_address.toInt(),p);
@ -262,6 +262,7 @@ char *Identity::toString(bool includePrivate,char buf[ZT_IDENTITY_STRING_BUFFER_
return buf;
} break;
}
return nullptr;
}
bool Identity::fromString(const char *str)