From 447234369d7954ee3856707ecba5f1dbd27d2130 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 5 Aug 2011 18:08:50 +0000 Subject: Start TLS failed is useless; print something better --- xxxterm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'xxxterm.c') diff --git a/xxxterm.c b/xxxterm.c index 8525f33..d691e8b 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -3223,6 +3223,7 @@ start_tls(struct tab *t, int s, gnutls_session_t *gs, gnutls_credentials_type_t cred; cred = gnutls_auth_get_type(gsession); if (cred != GNUTLS_CRD_CERTIFICATE) { + show_oops(t, "gnutls_auth_get_type failed %d", (int)cred); stop_tls(gsession, xcred); goto done; } @@ -3370,10 +3371,8 @@ load_compare_cert(struct tab *t, struct karg *args) return (rv); /* go ssl/tls */ - if (start_tls(t, s, &gsession, &xcred)) { - show_oops(t, "Start TLS failed"); + if (start_tls(t, s, &gsession, &xcred)) goto done; - } /* verify certs in case cert file doesn't exist */ gnutls_certificate_verify_peers2(gsession, &error); @@ -3451,10 +3450,8 @@ cert_cmd(struct tab *t, struct karg *args) } /* go ssl/tls */ - if (start_tls(t, s, &gsession, &xcred)) { - show_oops(t, "Start TLS failed"); + if (start_tls(t, s, &gsession, &xcred)) goto done; - } /* get certs */ if (get_connection_certs(gsession, &certs, &cert_count)) { -- cgit 1.4.1-2-gfad0 a href='/akkartik/mu/?h=main'>summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/task.asm
blob: f0f2b464560e4f7ceab6284f7aa92b645d3425a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39