Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/common.global.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2479 by niro, Thu Sep 10 08:48:45 2015 UTC revision 2631 by niro, Tue Sep 29 10:34:58 2015 UTC
# Line 48  eecho() Line 48  eecho()
48   -n) shift; opts="n" ;;   -n) shift; opts="n" ;;
49   esac   esac
50    
51   echo -e${opts} "${COLRED}$@${COLDEFAULT}${webcrlf}"   # echo to stderr
52     echo -e${opts} "${COLRED}$@${COLDEFAULT}${webcrlf}" 1>&2
53  }  }
54    
55  # prints return values of get | enabled even in quiet mode  # prints return values of get | enabled even in quiet mode
# Line 368  $@ Line 369  $@
369  quit  quit
370  EOF  EOF
371  }  }
372    
373    nsslsay_queue_init()
374    {
375     SSLSAY_QUEUE=()
376    }
377    
378    nsslsay_queue_add()
379    {
380     SSLSAY_QUEUE+=( "$@" )
381    }
382    
383    nsslsay_queue_print()
384    {
385     local count
386     local i
387    
388     count="${#SSLSAY_QUEUE[*]}"
389     for ((i=0; i < count; i++))
390     do
391     echo "${SSLSAY_QUEUE[${i}]}"
392     done
393    }
394    
395    nsslsay_queue_run()
396    {
397     nsslsay "$(nsslsay_queue_print)"
398    }
399    
400    nsslsay_queue_run_fingerprint()
401    {
402     nsslsay_fingerprint "$(nsslsay_queue_print)"
403    }

Legend:
Removed from v.2479  
changed lines
  Added in v.2631