mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 04:05:32 +00:00
- Made cipersuites in ssl context const (no intention to modify)
- Adjusted ssl_set_ciphersuites() to match
This commit is contained in:
parent
835b29e7c3
commit
b68cad6cc7
|
@ -369,7 +369,7 @@ struct _ssl_context
|
|||
unsigned char *, size_t);
|
||||
|
||||
int do_crypt; /*!< en(de)cryption flag */
|
||||
int *ciphersuites; /*!< allowed ciphersuites */
|
||||
const int *ciphersuites; /*!< allowed ciphersuites */
|
||||
size_t pmslen; /*!< premaster length */
|
||||
unsigned int keylen; /*!< symmetric key length */
|
||||
size_t minlen; /*!< min. ciphertext length */
|
||||
|
@ -405,7 +405,7 @@ struct _ssl_context
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int ssl_default_ciphersuites[];
|
||||
extern const int ssl_default_ciphersuites[];
|
||||
|
||||
#if defined(POLARSSL_SSL_HW_RECORD_ACCEL)
|
||||
extern int (*ssl_hw_record_init)(ssl_context *ssl,
|
||||
|
@ -577,7 +577,7 @@ void ssl_set_session( ssl_context *ssl, int resume, int timeout,
|
|||
* \param ssl SSL context
|
||||
* \param ciphersuites 0-terminated list of allowed ciphersuites
|
||||
*/
|
||||
void ssl_set_ciphersuites( ssl_context *ssl, int *ciphersuites );
|
||||
void ssl_set_ciphersuites( ssl_context *ssl, const int *ciphersuites );
|
||||
|
||||
/**
|
||||
* \brief Set the data required to verify peer certificate
|
||||
|
|
|
@ -2809,7 +2809,7 @@ void ssl_set_session( ssl_context *ssl, int resume, int timeout,
|
|||
ssl->session = session;
|
||||
}
|
||||
|
||||
void ssl_set_ciphersuites( ssl_context *ssl, int *ciphersuites )
|
||||
void ssl_set_ciphersuites( ssl_context *ssl, const int *ciphersuites )
|
||||
{
|
||||
ssl->ciphersuites = ciphersuites;
|
||||
}
|
||||
|
@ -3153,7 +3153,7 @@ const char *ssl_get_version( const ssl_context *ssl )
|
|||
return( "unknown" );
|
||||
}
|
||||
|
||||
int ssl_default_ciphersuites[] =
|
||||
const int ssl_default_ciphersuites[] =
|
||||
{
|
||||
#if defined(POLARSSL_DHM_C)
|
||||
#if defined(POLARSSL_AES_C)
|
||||
|
|
Loading…
Reference in a new issue