Added GetCipherName() which takes an index

This commit is contained in:
ShaneIsrael 2014-08-13 09:46:13 -06:00
parent f043b90a7f
commit 57f2affe20
2 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,7 @@ void c32to24(word32 in, word24 out);
/* used by ssl.c */
const char* const* GetCipherNames(void);
int GetCipherNamesSize(void);
const char* GetCipherName(int);
/* Define or comment out the cipher suites you'd like to be compiled in
make sure to use at least one BUILD_SSL_xxx or BUILD_TLS_xxx is defined

View File

@ -8259,6 +8259,11 @@ const char* const* GetCipherNames(void)
{
return cipher_names;
}
/* returns the cipher at the specified index of cipher_names */
const char* GetCipherName(int index)
{
return cipher_names[index];
}
/* returns the size of the cipher_names array */
int GetCipherNamesSize(void)
{