ssl-opt: Fix GnuTLS PSK injection

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-09-06 15:27:57 +02:00
parent 9404169146
commit 6f9952abfc
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 7acada6a928031340d390b2dce645a3b6129ddad
Subproject commit 071831e25bd336baa58bbdf65e985283f56e1b86

View File

@ -543,7 +543,8 @@ adapt_cmd_for_psk () {
case "$2" in
*openssl*s_server*) s='-psk 73776f726466697368 -nocert';;
*openssl*) s='-psk 73776f726466697368';;
*gnutls-*) s='--pskusername=Client_identity --pskkey=73776f726466697368';;
*gnutls-cli*) s='--pskusername=Client_identity --pskkey=73776f726466697368';;
*gnutls-serv*) s='--pskpasswd=../framework/data_files/simplepass.psk';;
*) s='psk=73776f726466697368';;
esac
eval $1='"$2 $s"'