Add log messages to the certificate callback path.
Logs are meant to test 2 theories regarding the
SIGSEGV in the attached bug:
1. Failure is happening somewhere in the middle
of the call path from tls_openssl to AIDL.
2. sm struct becomes stale before the callback is
used.
Bug: 275293332
Test: Connect to WPA-Enterprise network and verify logs.
Change-Id: I7b654d2a63f7f453f05b586f84c42702ac899d1e
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 32ddf1f..3122c58 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -1360,6 +1360,7 @@
ssize_t wpas_get_certificate(const char *alias, uint8_t** value)
{
+ wpa_printf(MSG_INFO, "wpas_get_certificate");
return wpas_aidl_get_certificate(alias, value);
}