Skip to content

Commit

Permalink
Fix OpenSSL 1.1 compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jul 25, 2016
1 parent fc5521f commit f4fdc17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtls.c
Expand Up @@ -155,7 +155,7 @@ static void buf_append_OCTET_STRING(struct oc_text_buf *buf, void *data, int len
}

static SSL_SESSION *generate_dtls_session(struct openconnect_info *vpninfo,
int dtlsver, SSL_CIPHER *cipher)
int dtlsver, const SSL_CIPHER *cipher)
{
struct oc_text_buf *buf = buf_alloc();
SSL_SESSION *dtls_session;
Expand Down Expand Up @@ -201,7 +201,7 @@ static SSL_SESSION *generate_dtls_session(struct openconnect_info *vpninfo,
}
#else /* OpenSSL before 1.1 */
static SSL_SESSION *generate_dtls_session(struct openconnect_info *vpninfo,
int dtlsver, SSL_CIPHER *cipher)
int dtlsver, const SSL_CIPHER *cipher)
{
SSL_SESSION *dtls_session = SSL_SESSION_new();
if (!dtls_session) {
Expand Down

0 comments on commit f4fdc17

Please sign in to comment.