Return to cipher.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.9, 1999/09/30 18:37:45 | version 1.10, 1999/09/30 18:41:24 | ||
---|---|---|---|
|
|
||
const | const | ||
char *cipher_name(int cipher) | char *cipher_name(int cipher) | ||
{ | { | ||
if (cipher < 0 || cipher >= sizeof(cipher_names) / sizeof(cipher_names[0])) | if (cipher < 0 || cipher >= sizeof(cipher_names) / sizeof(cipher_names[0]) || | ||
cipher_names[cipher] == NULL) | |||
fatal("cipher_name: bad cipher number: %d", cipher); | fatal("cipher_name: bad cipher number: %d", cipher); | ||
return cipher_names[cipher]; | return cipher_names[cipher]; | ||
} | } |