Home
last modified time | relevance | path

Searched hist:f1018ea0 (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dcrypto-tls-psk-helpers.cf1018ea0 Wed Sep 28 09:57:24 CDT 2022 Daniel P. Berrangé <berrange@redhat.com> tests: avoid DOS line endings in PSK file

Using FILE * APIs for writing the PSK file results in translation from
UNIX to DOS line endings on Windows. When the crypto PSK code later
loads the credentials the stray \r will result in failure to load the
PSK credentials into GNUTLS.

Rather than switching the FILE* APIs to open in binary format, just
switch to the more concise g_file_set_contents API.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>