mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 19:39:53 +03:00
Compare commits
No commits in common. "465df1650554a49531f2e9cb313f7a146a4d0627" and "ca832a9cef5a522cd72061242b8b1a22a7931eab" have entirely different histories.
465df16505
...
ca832a9cef
33
.appveyor.yml
Normal file
33
.appveyor.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
version: '{build}'
|
||||||
|
|
||||||
|
image: Ubuntu2004
|
||||||
|
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
skip_branch_with_pr: true
|
||||||
|
clone_depth: 1
|
||||||
|
|
||||||
|
skip_commits:
|
||||||
|
files:
|
||||||
|
- .travis.yml
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- .azure-pipelines.yml
|
||||||
|
- .cirrus.yml
|
||||||
|
|
||||||
|
init:
|
||||||
|
- ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- sudo apt-get -y install libsodium-dev libcap-ng-dev
|
||||||
|
before_build:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
- ./configure
|
||||||
|
build_script:
|
||||||
|
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
||||||
|
- .ci/memory-leak-test.sh
|
||||||
|
test_script:
|
||||||
|
- .ci/appveyor-deb-install-test.sh
|
||||||
|
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip liblz4-dev libnl-genl-3-dev # openvpn build deps
|
||||||
|
- sudo .ci/start-se-openvpn.sh
|
||||||
|
- sudo .ci/run-openvpn-tests.sh
|
||||||
|
|
@ -6773,6 +6773,7 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
|||||||
|
|
||||||
p = NewPack();
|
p = NewPack();
|
||||||
PackAddStr(p, "method", "login");
|
PackAddStr(p, "method", "login");
|
||||||
|
PackAddStr(p, "hubname", hubname);
|
||||||
|
|
||||||
if (IsEmptyStr(username))
|
if (IsEmptyStr(username))
|
||||||
{
|
{
|
||||||
@ -6781,26 +6782,12 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
|||||||
FreePack(p);
|
FreePack(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
||||||
|
PackAddStr(p, "username", cn_username);
|
||||||
if (strchr(cn_username, '@') != NULL)
|
|
||||||
|
|
||||||
{
|
|
||||||
PackAddStr(p, "username", strtok(cn_username, "@"));
|
|
||||||
PackAddStr(p, "hubname", strtok(NULL, ""));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PackAddStr(p, "username", cn_username);
|
|
||||||
PackAddStr(p, "hubname", hubname);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PackAddStr(p, "username", username);
|
PackAddStr(p, "username", username);
|
||||||
PackAddStr(p, "hubname", hubname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PackAddInt(p, "authtype", AUTHTYPE_OPENVPN_CERT);
|
PackAddInt(p, "authtype", AUTHTYPE_OPENVPN_CERT);
|
||||||
|
Loading…
Reference in New Issue
Block a user