mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 02:28:11 +00:00
- String peer_cn in ssl context made const as well.
This commit is contained in:
parent
ad7eca201d
commit
57b7914445
2 changed files with 3 additions and 3 deletions
|
@ -239,7 +239,7 @@ struct _ssl_context
|
|||
x509_cert *ca_chain; /*!< own trusted CA chain */
|
||||
x509_crl *ca_crl; /*!< trusted CA CRLs */
|
||||
x509_cert *peer_cert; /*!< peer X.509 cert chain */
|
||||
char *peer_cn; /*!< expected peer CN */
|
||||
const char *peer_cn; /*!< expected peer CN */
|
||||
|
||||
int endpoint; /*!< 0: client, 1: server */
|
||||
int authmode; /*!< verification mode */
|
||||
|
@ -398,7 +398,7 @@ void ssl_set_ciphers( ssl_context *ssl, int *ciphers );
|
|||
* \note TODO: add two more parameters: depth and crl
|
||||
*/
|
||||
void ssl_set_ca_chain( ssl_context *ssl, x509_cert *ca_chain,
|
||||
x509_crl *ca_crl, char *peer_cn );
|
||||
x509_crl *ca_crl, const char *peer_cn );
|
||||
|
||||
/**
|
||||
* \brief Set own certificate and private key
|
||||
|
|
|
@ -1703,7 +1703,7 @@ void ssl_set_ciphers( ssl_context *ssl, int *ciphers )
|
|||
}
|
||||
|
||||
void ssl_set_ca_chain( ssl_context *ssl, x509_cert *ca_chain,
|
||||
x509_crl *ca_crl, char *peer_cn )
|
||||
x509_crl *ca_crl, const char *peer_cn )
|
||||
{
|
||||
ssl->ca_chain = ca_chain;
|
||||
ssl->ca_crl = ca_crl;
|
||||
|
|
Loading…
Reference in a new issue