]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 6 Jun 2004 09:04:48 +0000 (09:04 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 6 Jun 2004 09:04:48 +0000 (09:04 +0000)
src/tests.c
src/tls_test-gaa.c
src/tls_test.gaa

index 029a577b29c7049c5155b2ca3ec27109c1f168ac..580bc5cc58b2b1062d238795e365cbffdbdc3477 100644 (file)
@@ -65,7 +65,7 @@ int ret, alert;
        
                handshake_output = ret;
 
-               if (ret < 0 && more_info != 0) {
+               if (ret < 0 && more_info > 1) {
                        if (ret == GNUTLS_E_WARNING_ALERT_RECEIVED
                            || ret == GNUTLS_E_FATAL_ALERT_RECEIVED) {
                                alert = gnutls_alert_get( session);
@@ -264,10 +264,11 @@ const char* print;
 
        ret = do_handshake( session);
 
-       printf("\n");
        if (ret == SUCCEED) {
                ret2 = gnutls_rsa_export_get_pubkey( session, &exp2, &mod2);
                if (ret2 >= 0) {
+                       printf("\n");
+
                        print = raw_to_string( exp2.data, exp2.size);
                        if (print)
                                printf(" Exponent [%d bits]: %s\n", exp2.size*8, print);
@@ -331,9 +332,10 @@ const char* print;
 
        ret = do_handshake( session);
        
-       printf("\n");
        ret2 = gnutls_dh_get_group( session, &gen, &prime);
        if (ret2 >= 0) {
+               printf("\n");
+
                print = raw_to_string( gen.data, gen.size);
                if (print)
                        printf(" Generator [%d bits]: %s\n", gen.size*8, print);
index 42f4dc4ee0b6b7732bfbce28674e85d801ae475d..2bf9b9737ec64cbb5e4e41ee519a2a5f8b3d7cfd 100644 (file)
@@ -504,7 +504,7 @@ static int gaa_try(int gaa_num, int gaa_index, gaainfo *gaaval, char *opt_list)
        case GAAOPTID_verbose:
        OK = 0;
 #line 21 "tls_test.gaa"
-{ gaaval->more_info = 1 ;};
+{ gaaval->more_info += 1 ;};
 
                return GAA_OK;
                break;
index a1c607ee1a1bca29debb63b6145b7f6b5cdd86f0..b72febd900c6ea2d6399ced10df86182e78ca898 100644 (file)
@@ -18,7 +18,7 @@ option (p, port) INT "integer" { $pp = $1 } "The port to connect to."
 option (d, debug) INT "integer" { $debug = $1 } "Enable debugging" 
 
 #int more_info;
-option (v, verbose) { $more_info = 1 } "More verbose output"
+option (v, verbose) { $more_info += 1 } "More verbose output"
 
 option (h, help) { gaa_help(); exit(0); } "prints this help"