diff options
author | tb <> | 2018-04-25 07:12:33 +0000 |
---|---|---|
committer | tb <> | 2018-04-25 07:12:33 +0000 |
commit | 6e1f0836ed5f34d217acbaba9981a1dbcc400844 (patch) | |
tree | 38b8da3b6f1e041c31eca613937f7e4fc93f258c /src/usr.bin/openssl/s_cb.c | |
parent | 7a58116b9a7e5669a2dd3926f53fafdaa1d8ec1e (diff) | |
download | openbsd-6e1f0836ed5f34d217acbaba9981a1dbcc400844.tar.gz openbsd-6e1f0836ed5f34d217acbaba9981a1dbcc400844.tar.bz2 openbsd-6e1f0836ed5f34d217acbaba9981a1dbcc400844.zip |
The cookie in the cookie verify callback needs to be const.
ok jsing (as part of a larger diff)
Diffstat (limited to 'src/usr.bin/openssl/s_cb.c')
-rw-r--r-- | src/usr.bin/openssl/s_cb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/s_cb.c b/src/usr.bin/openssl/s_cb.c index b25118c030..835e99551b 100644 --- a/src/usr.bin/openssl/s_cb.c +++ b/src/usr.bin/openssl/s_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_cb.c,v 1.9 2018/01/15 11:02:07 inoguchi Exp $ */ | 1 | /* $OpenBSD: s_cb.c,v 1.10 2018/04/25 07:12:33 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 | * |
@@ -821,7 +821,8 @@ generate_cookie_callback(SSL * ssl, unsigned char *cookie, | |||
821 | } | 821 | } |
822 | 822 | ||
823 | int | 823 | int |
824 | verify_cookie_callback(SSL * ssl, unsigned char *cookie, unsigned int cookie_len) | 824 | verify_cookie_callback(SSL * ssl, const unsigned char *cookie, |
825 | unsigned int cookie_len) | ||
825 | { | 826 | { |
826 | unsigned char *buffer, result[EVP_MAX_MD_SIZE]; | 827 | unsigned char *buffer, result[EVP_MAX_MD_SIZE]; |
827 | unsigned int length, resultlength; | 828 | unsigned int length, resultlength; |