Fix verify_callback in the openssl s_client/s_server app
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 14 Jul 2022 19:41:48 +0000 (21:41 +0200)
committerHugo Landau <hlandau@openssl.org>
Wed, 20 Jul 2022 06:38:45 +0000 (07:38 +0100)
commit86945b10ccd84f685bd6215bbb00d1e700303e49
tree9c73d76a1df52842d0e7706da971ab710579a58b
parentff238172e26aa0a3f795cbfd60b9615e3e00a216
Fix verify_callback in the openssl s_client/s_server app

We need to check that error cert is available before printing its data

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18805)

(cherry picked from commit fad0f80eff188ef938fed614245a56ed56110deb)
apps/s_cb.c