diff --git a/cyassl/internal.h b/cyassl/internal.h index 0bd444b84..785743275 100644 --- a/cyassl/internal.h +++ b/cyassl/internal.h @@ -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 diff --git a/src/internal.c b/src/internal.c index 6752c2d9a..78bf19f07 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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) {