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 |
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 |
|
} |