search for: progress_chars

Displaying 1 result from an estimated 1 matches for "progress_chars".

Did you mean: progress_bars
1999 Dec 16
3
Progress meter for ssh-keygen
...================ RCS file: /var/cvs/openssh/rsa.c,v retrieving revision 1.5 diff -u -r1.5 rsa.c --- rsa.c 1999/11/25 00:54:59 1.5 +++ rsa.c 1999/12/16 03:19:38 @@ -56,6 +56,21 @@ } /* + * Key generation progress meter callback + */ +void +keygen_progress(int p, int n, void *arg) +{ + const char progress_chars[] = ".o+O?"; + + if ((p < 0) || (p > (sizeof(progress_chars) - 2))) + p = 4; + + printf("%c", progress_chars[p]); + fflush(stdout); +} + +/* * Generates RSA public and private keys. This initializes the data * structures; they should be freed with rsa_clear_private_k...