diff options
author | jsing <> | 2020-11-11 18:14:12 +0000 |
---|---|---|
committer | jsing <> | 2020-11-11 18:14:12 +0000 |
commit | 439875db3ebc782d7dcb3cef801a22813bf8470e (patch) | |
tree | 2762beb6ca3b039bd0212c1aba3c3a359ed4552d /src/lib/libssl/ssl_locl.h | |
parent | 461c154feb8a5f1be014a0ac96358ab5f1ee8792 (diff) | |
download | openbsd-439875db3ebc782d7dcb3cef801a22813bf8470e.tar.gz openbsd-439875db3ebc782d7dcb3cef801a22813bf8470e.tar.bz2 openbsd-439875db3ebc782d7dcb3cef801a22813bf8470e.zip |
Use size_t for key_block_len.
This allows us to remove a check and will make future changes simpler. Use
suitable names for tls1_generate_key_block() arguments while here.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 9c8310b83c..46a1ad4884 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.306 2020/10/14 16:57:33 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.307 2020/11/11 18:14:12 jsing 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 | * |
@@ -416,7 +416,7 @@ typedef struct ssl_handshake_st { | |||
416 | const SSL_CIPHER *new_cipher; | 416 | const SSL_CIPHER *new_cipher; |
417 | 417 | ||
418 | /* key_block is the record-layer key block for TLS 1.2 and earlier. */ | 418 | /* key_block is the record-layer key block for TLS 1.2 and earlier. */ |
419 | int key_block_len; | 419 | size_t key_block_len; |
420 | unsigned char *key_block; | 420 | unsigned char *key_block; |
421 | 421 | ||
422 | /* Extensions seen in this handshake. */ | 422 | /* Extensions seen in this handshake. */ |