Debian Codegraph @

tests/system-override-sig-tls.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # Copyright (C) 2019 Nikos Mavrogiannopoulos
4 # Copyright (C) 2021 Red Hat, Inc.
5 #
6 # Author: Nikos Mavrogiannopoulos, Daiki Ueno
7 #
8 # This file is part of GnuTLS.
9 #
10 # GnuTLS is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by the
12 # Free Software Foundation; either version 3 of the License, or (at
13 # your option) any later version.
14 #
15 # GnuTLS is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with GnuTLS. If not, see <https://www.gnu.org/licenses/>.
22
23 : ${builddir=.}
24 TMPFILE=c.$$.tmp
25 export GNUTLS_SYSTEM_PRIORITY_FAIL_ON_INVALID=1
26
27 catscip-shell system . . cat. <<_EOF_ > ${TMPFILE}
28 [overrides]
29
30 insecure-sig = rsa-pss-rsae-sha256
31 _EOF_
32
33 export GNUTLS_SYSTEM_PRIORITY_FILE="${TMPFILE}"
34
35 "${builddir}/system-override-sig-tls"
36 rc=$?
37 rmscip-shell system . . rm. ${TMPFILE}
38 exit $rc