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:
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user