1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

- Improved information provided about current Hashing, Cipher and Suite capabilities

This commit is contained in:
Paul Bakker
2011-01-16 21:27:44 +00:00
parent 76fd75a3de
commit 72f6266f02
7 changed files with 167 additions and 18 deletions

View File

@@ -151,6 +151,14 @@ typedef struct {
extern "C" {
#endif
/**
* \brief Returns the list of ciphers supported by the generic cipher module.
*
* \return a statically allocated array of ciphers, the last entry
* is 0.
*/
const int *cipher_list( void );
/**
* \brief Returns the cipher information structure associated
* with the given cipher name.

View File

@@ -118,6 +118,14 @@ typedef struct {
extern "C" {
#endif
/**
* \brief Returns the list of digests supported by the generic digest module.
*
* \return a statically allocated array of digests, the last entry
* is 0.
*/
const int *md_list( void );
/**
* \brief Returns the message digest information associated with the
* given digest name.

View File

@@ -319,6 +319,26 @@ extern "C" {
extern int ssl_default_ciphers[];
/**
* \brief Returns the list of ciphers supported by the SSL/TLS module.
*
* \return a statically allocated array of ciphers, the last entry
* is 0.
*/
static inline const int *ssl_list_ciphers( void )
{
return ssl_default_ciphers;
}
/**
* \brief Return the name of the cipher associated with the given ID
*
* \param cipher_id SSL cipher ID
*
* \return a string containing the cipher name
*/
const char *ssl_get_cipher_name( const int cipher_id );
/**
* \brief Initialize an SSL context
*