This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from zecure/dev
Release 2.2.0
- Loading branch information
Showing
84 changed files
with
248 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Analyze | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
blacklist: | ||
name: Blacklist | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Compare regular expressions with samples | ||
run: | | ||
./misc/blacklist/helper.py --test | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
env: | ||
SONAR_SCANNER_VERSION: 4.7.0.2747 | ||
SONAR_SERVER_URL: "https://sonarcloud.io" | ||
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Download and set up sonar-scanner | ||
env: | ||
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux.zip | ||
run: | | ||
mkdir -p $HOME/.sonar | ||
curl -sSLo $HOME/.sonar/sonar-scanner.zip ${{ env.SONAR_SCANNER_DOWNLOAD_URL }} | ||
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ | ||
echo "$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH | ||
- name: Download and set up build-wrapper | ||
env: | ||
BUILD_WRAPPER_DOWNLOAD_URL: ${{ env.SONAR_SERVER_URL }}/static/cpp/build-wrapper-linux-x86.zip | ||
run: | | ||
curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip ${{ env.BUILD_WRAPPER_DOWNLOAD_URL }} | ||
unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/ | ||
echo "$HOME/.sonar/build-wrapper-linux-x86" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y build-essential cmake libssl-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-regex-dev libboost-test-dev libasio-dev libjsoncpp-dev libcrypto++-dev libdbi-dev | ||
- name: Run cmake | ||
run: | | ||
cmake . | ||
- name: Run unit tests | ||
run: | | ||
make tests && make test | ||
- name: Run build-wrapper | ||
run: | | ||
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make shadowd | ||
- name: Run sonar-scanner | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: | | ||
sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" -Dproject.settings=.sonarcloud.properties -Dsonar.cfamily.cache.enabled=false -Dsonar.cfamily.threads=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
@@ -68,11 +68,12 @@ namespace swd { | |
* @param password The database password, originating from the config | ||
* @param name The database name, originating from the config | ||
* @param encoding The database encoding, originating from the config | ||
* @param wait Retry connecting to the database | ||
*/ | ||
void connect(const std::string& driver, const std::string& host, | ||
const std::string& port, const std::string& username, | ||
const std::string& password, const std::string& name, | ||
const std::string& encoding); | ||
const std::string& encoding, bool wait); | ||
|
||
/** | ||
* @brief Close the database connection. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Shadow Daemon -- Web Application Firewall | ||
* | ||
* Copyright (C) 2014-2021 Hendrik Buchwald <[email protected]> | ||
* Copyright (C) 2014-2022 Hendrik Buchwald <[email protected]> | ||
* | ||
* This file is part of Shadow Daemon. Shadow Daemon is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU General Public | ||
|
Oops, something went wrong.