summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-03-17 14:47:49 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-03-17 14:47:49 +0000
commit6a01976ec72e0c30caf2a995a4266c0d2b2ed020 (patch)
treedcbba8f94b72cf4c45ce87056346f01deb3dadcb
parentbf037c1124f1c91fc3b2753a4deb2fa72303dbf5 (diff)
SSL_SESSION_get_protocol_version() takes a const SSL_SESSION *.
Noted by schwarze@ ok jsing@
-rw-r--r--lib/libssl/ssl.h4
-rw-r--r--lib/libssl/ssl_sess.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h
index 206049887de..63577663c8b 100644
--- a/lib/libssl/ssl.h
+++ b/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.149 2018/03/17 14:40:45 jsing Exp $ */
+/* $OpenBSD: ssl.h,v 1.150 2018/03/17 14:47:48 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1310,7 +1310,7 @@ const char *SSL_state_string_long(const SSL *s);
const char *SSL_rstate_string_long(const SSL *s);
size_t SSL_SESSION_get_master_key(const SSL_SESSION *ss,
unsigned char *out, size_t max_out);
-int SSL_SESSION_get_protocol_version(SSL_SESSION *s);
+int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);
long SSL_SESSION_get_time(const SSL_SESSION *s);
long SSL_SESSION_set_time(SSL_SESSION *s, long t);
long SSL_SESSION_get_timeout(const SSL_SESSION *s);
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c
index 9d7008e24bd..b97dfd78672 100644
--- a/lib/libssl/ssl_sess.c
+++ b/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sess.c,v 1.75 2018/03/17 14:26:13 jsing Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.76 2018/03/17 14:47:48 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -822,7 +822,7 @@ SSL_SESSION_set_time(SSL_SESSION *s, long t)
}
int
-SSL_SESSION_get_protocol_version(SSL_SESSION *s)
+SSL_SESSION_get_protocol_version(const SSL_SESSION *s)
{
return s->ssl_version;
}