summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2010-11-30 14:49:15 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2010-11-30 14:49:15 +0000
commitd4f8fc1386472f76d2dd581de3a21cb1d0e05f8a (patch)
treeb6bd8fc060784345717196b95839bb793b06b09a /usr.sbin/relayd
parent7ea40dff4280f76e0960ee9f89356940ef086de8 (diff)
The returned SSL_METHOD of SSLv23_server_method()/SSLv23_client_method()
is const now, adjust the variable and silence a compiler warning.
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/relay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index a5825d5b281..9fb699f8436 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.126 2010/11/30 14:38:45 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.127 2010/11/30 14:49:14 reyk Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -2710,11 +2710,11 @@ relay_ssl_ctx_create(struct relay *rlay)
void
relay_ssl_transaction(struct rsession *con, struct ctl_relay_event *cre)
{
- struct relay *rlay = (struct relay *)con->se_relay;
- SSL *ssl;
- SSL_METHOD *method;
- void (*cb)(int, short, void *);
- u_int flags = EV_TIMEOUT;
+ struct relay *rlay = (struct relay *)con->se_relay;
+ SSL *ssl;
+ const SSL_METHOD *method;
+ void (*cb)(int, short, void *);
+ u_int flags = EV_TIMEOUT;
ssl = SSL_new(rlay->rl_ssl_ctx);
if (ssl == NULL)