Commit aba431be90e1add74a6867c1b821a5f2ba80c683
1 parent
22213f20
Exists in
master
and in
3 other branches
Using standard popup as default for ssl error.
Showing
1 changed file
with
14 additions
and
2 deletions
Show diff stats
src/core/session.c
@@ -243,10 +243,22 @@ static int def_popup_show(H3270 *hSession, const LIB3270_POPUP *popup, unsigned | @@ -243,10 +243,22 @@ static int def_popup_show(H3270 *hSession, const LIB3270_POPUP *popup, unsigned | ||
243 | return ENOTSUP; | 243 | return ENOTSUP; |
244 | } | 244 | } |
245 | 245 | ||
246 | -static int def_popup_ssl_error(H3270 *session, int GNUC_UNUSED(rc), const char *title, const char *summary, const char *body) | ||
247 | -{ | 246 | +static int def_popup_ssl_error(H3270 *hSession, int GNUC_UNUSED(rc), const char *title, const char *summary, const char *body) |
247 | +{ | ||
248 | + LIB3270_POPUP popup = { | ||
249 | + .type = LIB3270_NOTIFY_SECURE, | ||
250 | + .title = title, | ||
251 | + .summary = summary, | ||
252 | + .body = body, | ||
253 | + .label = _("Continue") | ||
254 | + }; | ||
255 | + | ||
256 | + return hSession->cbk.popup_show(hSession,&popup,1); | ||
257 | + | ||
258 | + /* | ||
248 | lib3270_popup_dialog(session, LIB3270_NOTIFY_ERROR, title, summary, "%s", body); | 259 | lib3270_popup_dialog(session, LIB3270_NOTIFY_ERROR, title, summary, "%s", body); |
249 | return -1; | 260 | return -1; |
261 | + */ | ||
250 | } | 262 | } |
251 | 263 | ||
252 | static void def_trace(H3270 GNUC_UNUSED(*session), void GNUC_UNUSED(*userdata), const char *fmt, va_list args) | 264 | static void def_trace(H3270 GNUC_UNUSED(*session), void GNUC_UNUSED(*userdata), const char *fmt, va_list args) |