1 Star 0 Fork 39

hwzjyggsddu/gnutls

forked from src-openEuler/gnutls 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-tests-remove-launch_pkcs11_server.patch 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
From a7b126acd4793ced574acb68bdbf5c6a48bb4ad5 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno@gnu.org>
Date: Wed, 23 Sep 2020 09:34:09 +0200
Subject: [PATCH] tests: remove launch_pkcs11_server
This function is only used by testpkcs11.sh.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
---
tests/scripts/common.sh | 11 -----------
tests/testpkcs11.sh | 2 +-
2 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 6ae19fa..5e6f91b 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -168,17 +168,6 @@ launch_server() {
${SERV} ${DEBUG} -p "${PORT}" $* >${LOGFILE-/dev/null} &
}
-launch_pkcs11_server() {
- PARENT="$1"
- shift
- PROVIDER="$1"
- shift
-
- wait_for_free_port ${PORT}
-
- ${VALGRIND} ${SERV} ${PROVIDER} ${DEBUG} -p "${PORT}" $* &
-}
-
launch_bare_server() {
PARENT="$1"
shift
diff --git a/tests/testpkcs11.sh b/tests/testpkcs11.sh
index 9458af2..b69e312 100755
--- a/tests/testpkcs11.sh
+++ b/tests/testpkcs11.sh
@@ -900,7 +900,7 @@ use_certificate_test () {
echo -n "* Using PKCS #11 with gnutls-cli (${txt})... "
# start server
eval "${GETPORT}"
- launch_pkcs11_server $$ "${ADDITIONAL_PARAM}" --echo --priority NORMAL --x509certfile="${certfile}" \
+ launch_server ${ADDITIONAL_PARAM} --echo --priority NORMAL --x509certfile="${certfile}" \
--x509keyfile="$keyfile" --x509cafile="${cafile}" \
--verify-client-cert --require-client-cert >>"${LOGFILE}" 2>&1
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hwzjyggsddu/gnutls.git
git@gitee.com:hwzjyggsddu/gnutls.git
hwzjyggsddu
gnutls
gnutls
openEuler-20.03-LTS

搜索帮助