mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-13 09:05:08 -04:00
Fix PSK invocation: GnuTLS prompting
When given a PSK key but no username, gnutls-cli prompts for a password. Prevent that by passing --pskusername with the same identity that ssl_server2 uses by default. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
8ed4374102
commit
6cafbb3ae8
@ -354,7 +354,7 @@ adapt_cmd_for_psk () {
|
|||||||
case "$2" in
|
case "$2" in
|
||||||
*openssl*s_server*) s='-psk abc123 -nocert';;
|
*openssl*s_server*) s='-psk abc123 -nocert';;
|
||||||
*openssl*) s='-psk abc123';;
|
*openssl*) s='-psk abc123';;
|
||||||
*gnutls-*) s='--pskkey=abc123';;
|
*gnutls-*) s='--pskusername=Client_identity --pskkey=abc123';;
|
||||||
*) s='psk=abc123';;
|
*) s='psk=abc123';;
|
||||||
esac
|
esac
|
||||||
eval $1='"$2 $s"'
|
eval $1='"$2 $s"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user