Index: res/res_crypto.c =================================================================== RCS file: /usr/cvsroot/asterisk/res/res_crypto.c,v retrieving revision 1.24 diff -u -r1.24 res_crypto.c --- res/res_crypto.c 5 Aug 2005 16:29:30 -0000 1.24 +++ res/res_crypto.c 20 Aug 2005 00:26:31 -0000 @@ -501,6 +501,7 @@ { struct ast_key *key; char sum[16 * 2 + 1]; + int count_keys = 0; ast_mutex_lock(&keylock); key = keys; @@ -512,8 +513,10 @@ key->ktype & KEY_NEEDS_PASSCODE ? "[Needs Passcode]" : "[Loaded]", sum); key = key->next; + count_keys++; } ast_mutex_unlock(&keylock); + ast_cli(fd, "%d known RSA keys.\n", count_keys); return RESULT_SUCCESS; }