version 1.8, 1999/09/30 17:08:52 |
version 1.9, 1999/09/30 18:37:45 |
|
|
int cipher.h. */ |
int cipher.h. */ |
static char *cipher_names[] = |
static char *cipher_names[] = |
{ |
{ |
"no none", |
NULL, /* no none */ |
"no idea", |
NULL, /* no idea */ |
"no des", |
NULL, /* no des */ |
"3des", |
"3des", |
"no tss", |
NULL, /* no tss */ |
"no rc4", |
NULL, /* no rc4 */ |
"blowfish" |
"blowfish" |
}; |
}; |
|
|
|
|
{ |
{ |
int i; |
int i; |
for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++) |
for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++) |
if (strcmp(cipher_names[i], name) == 0) |
if (cipher_names[i] != NULL && strcmp(cipher_names[i], name) == 0) |
return i; |
return i; |
return -1; |
return -1; |
} |
} |