diff options
author | tb <> | 2022-06-07 17:31:36 +0000 |
---|---|---|
committer | tb <> | 2022-06-07 17:31:36 +0000 |
commit | c9aa377890ae955fc429d4a844cdfa4a68ea83f3 (patch) | |
tree | 38219d7127ada588c7c583c91003af5b0ff25888 /src/lib | |
parent | 1c353abcef6b6dc6ec22320f7353b20583a83718 (diff) | |
download | openbsd-c9aa377890ae955fc429d4a844cdfa4a68ea83f3.tar.gz openbsd-c9aa377890ae955fc429d4a844cdfa4a68ea83f3.tar.bz2 openbsd-c9aa377890ae955fc429d4a844cdfa4a68ea83f3.zip |
Add a cast to SSL_SESSION_get_id() to indicate that session_id_length
is deliberately reduced to an unsigned int. Since the session_id is at
most 32 bytes, this is not a concern.
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_sess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c index 92dc6d4abf..af1fd3c8bf 100644 --- a/src/lib/libssl/ssl_sess.c +++ b/src/lib/libssl/ssl_sess.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_sess.c,v 1.112 2022/06/07 17:28:05 tb Exp $ */ | 1 | /* $OpenBSD: ssl_sess.c,v 1.113 2022/06/07 17:31:36 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -244,7 +244,7 @@ const unsigned char * | |||
244 | SSL_SESSION_get_id(const SSL_SESSION *ss, unsigned int *len) | 244 | SSL_SESSION_get_id(const SSL_SESSION *ss, unsigned int *len) |
245 | { | 245 | { |
246 | if (len != NULL) | 246 | if (len != NULL) |
247 | *len = ss->session_id_length; | 247 | *len = (unsigned int)ss->session_id_length; |
248 | return ss->session_id; | 248 | return ss->session_id; |
249 | } | 249 | } |
250 | 250 | ||