Skip to content

Commit

Permalink
- String peer_cn in ssl context made const as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bakker committed Mar 24, 2010
1 parent ad7eca2 commit 57b7914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/polarssl/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57b7914

Please sign in to comment.