Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
609
Issues
609
List
Boards
Labels
Service Desk
Milestones
Merge Requests
109
Merge Requests
109
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
57c39ddb
Commit
57c39ddb
authored
Apr 30, 2020
by
Ondřej Surý
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the check for non-operational algs 15 and 16 in PKCS#11
parent
101672f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
bin/tests/system/dnssec/clean.sh
bin/tests/system/dnssec/clean.sh
+1
-1
bin/tests/system/dnssec/tests.sh
bin/tests/system/dnssec/tests.sh
+7
-6
No files found.
bin/tests/system/dnssec/clean.sh
View file @
57c39ddb
...
...
@@ -19,7 +19,7 @@ rm -f ./*/named.run ./*/named.run.prev
rm
-f
./
*
/named.secroots
rm
-f
./
*
/tmp
*
./
*
/
*
.jnl ./
*
/
*
.bk ./
*
/
*
.jbk
rm
-f
./
*
/trusted.conf ./
*
/managed.conf ./
*
/revoked.conf
rm
-f
./Kexample.
*
rm
-f
./Kexample.
*
./Kkeygen
*
./keygen
*
.err
rm
-f
./canonical?.
*
rm
-f
./delv.out
*
rm
-f
./delve.out
*
...
...
bin/tests/system/dnssec/tests.sh
View file @
57c39ddb
...
...
@@ -3237,6 +3237,7 @@ ret=0
alg
=
1
until
test
$alg
-eq
256
do
zone
=
"keygen-
$alg
."
case
$alg
in
2
)
# Diffie Helman
alg
=
$((
alg+1
))
...
...
@@ -3245,21 +3246,21 @@ do
alg
=
$((
alg+1
))
continue
;;
1|5|7|8|10
)
# RSA algorithms
key1
=
$(
$KEYGEN
-a
"
$alg
"
-b
"1024"
-n
zone
example 2> keygen.err
||
true
)
key1
=
$(
$KEYGEN
-a
"
$alg
"
-b
"1024"
-n
zone
"
$zone
"
2>
"keygen-
$alg
.err"
||
true
)
;;
15|16
)
key1
=
$(
$KEYGEN
-a
"
$alg
"
-
b
"1024"
-n
zone example 2> keygen.err
||
true
)
key1
=
$(
$KEYGEN
-a
"
$alg
"
-
n
zone
"
$zone
"
2>
"keygen-
$alg
.err"
||
true
)
# Soft-fail in case HSM doesn't support Edwards curves
if
grep
"not found"
keygen.err
>
/dev/null
&&
[
"
$CRYPTO
"
=
"pkcs11"
]
;
then
if
grep
"not found"
"keygen-
$alg
.err"
>
/dev/null
&&
[
"
$CRYPTO
"
=
"pkcs11"
]
;
then
echo_i
"Algorithm
$alg
not supported by HSM: skipping"
alg
=
$((
alg+1
))
continue
fi
;;
*
)
key1
=
$(
$KEYGEN
-a
"
$alg
"
-n
zone
example 2> keygen.err
||
true
)
key1
=
$(
$KEYGEN
-a
"
$alg
"
-n
zone
"
$zone
"
2>
"keygen-
$alg
.err"
||
true
)
esac
if
grep
"unsupported algorithm"
keygen.err
>
/dev/null
if
grep
"unsupported algorithm"
"keygen-
$alg
.err"
>
/dev/null
then
alg
=
$((
alg+1
))
continue
...
...
@@ -3267,7 +3268,7 @@ do
if
test
-z
"
$key1
"
then
echo_i
"'
$KEYGEN
-a
$alg
': failed"
cat
keygen.err
cat
"keygen-
$alg
.err"
ret
=
1
alg
=
$((
alg+1
))
continue
...
...
Ondřej Surý
@ondrej
mentioned in commit
09535ac6
·
May 01, 2020
mentioned in commit
09535ac6
mentioned in commit 09535ac6d63c31d10e0b1d4b974b3aa0e563f1f1
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment