diff options
author | tb <> | 2020-12-05 19:34:57 +0000 |
---|---|---|
committer | tb <> | 2020-12-05 19:34:57 +0000 |
commit | 13ccd53004834b4802042b3b1b9a3bd0a8536ef2 (patch) | |
tree | 895e993def21022bdc2555390ae7f254a42a1c58 /src/lib/libssl/d1_both.c | |
parent | e1da3120ffbd054d0d99012bcb8ce4be043c1667 (diff) | |
download | openbsd-13ccd53004834b4802042b3b1b9a3bd0a8536ef2.tar.gz openbsd-13ccd53004834b4802042b3b1b9a3bd0a8536ef2.tar.bz2 openbsd-13ccd53004834b4802042b3b1b9a3bd0a8536ef2.zip |
Mark bitmask_{start,end}_values[] and g_probable_mtu[] const.
ok jsing kn
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r-- | src/lib/libssl/d1_both.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c index f554834765..ae5ebfacb4 100644 --- a/src/lib/libssl/d1_both.c +++ b/src/lib/libssl/d1_both.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_both.c,v 1.62 2020/10/15 18:00:31 jsing Exp $ */ | 1 | /* $OpenBSD: d1_both.c,v 1.63 2020/12/05 19:34:57 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -148,15 +148,15 @@ | |||
148 | if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \ | 148 | if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \ |
149 | if (bitmask[ii] != 0xff) { is_complete = 0; break; } } | 149 | if (bitmask[ii] != 0xff) { is_complete = 0; break; } } |
150 | 150 | ||
151 | static unsigned char bitmask_start_values[] = { | 151 | static const unsigned char bitmask_start_values[] = { |
152 | 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80 | 152 | 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80 |
153 | }; | 153 | }; |
154 | static unsigned char bitmask_end_values[] = { | 154 | static const unsigned char bitmask_end_values[] = { |
155 | 0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f | 155 | 0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f |
156 | }; | 156 | }; |
157 | 157 | ||
158 | /* XDTLS: figure out the right values */ | 158 | /* XDTLS: figure out the right values */ |
159 | static unsigned int g_probable_mtu[] = {1500 - 28, 512 - 28, 256 - 28}; | 159 | static const unsigned int g_probable_mtu[] = {1500 - 28, 512 - 28, 256 - 28}; |
160 | 160 | ||
161 | static unsigned int dtls1_guess_mtu(unsigned int curr_mtu); | 161 | static unsigned int dtls1_guess_mtu(unsigned int curr_mtu); |
162 | static void dtls1_fix_message_header(SSL *s, unsigned long frag_off, | 162 | static void dtls1_fix_message_header(SSL *s, unsigned long frag_off, |