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);
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);
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);
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"