forked from wolfSSL/wolfssl
Added GetCipherName() which takes an index
This commit is contained in:
@ -159,6 +159,7 @@ void c32to24(word32 in, word24 out);
|
|||||||
/* used by ssl.c */
|
/* used by ssl.c */
|
||||||
const char* const* GetCipherNames(void);
|
const char* const* GetCipherNames(void);
|
||||||
int GetCipherNamesSize(void);
|
int GetCipherNamesSize(void);
|
||||||
|
const char* GetCipherName(int);
|
||||||
|
|
||||||
/* Define or comment out the cipher suites you'd like to be compiled in
|
/* 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
|
make sure to use at least one BUILD_SSL_xxx or BUILD_TLS_xxx is defined
|
||||||
|
@ -8259,6 +8259,11 @@ const char* const* GetCipherNames(void)
|
|||||||
{
|
{
|
||||||
return cipher_names;
|
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 */
|
/* returns the size of the cipher_names array */
|
||||||
int GetCipherNamesSize(void)
|
int GetCipherNamesSize(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user