diff options
author | beck <> | 2023-07-08 16:40:14 +0000 |
---|---|---|
committer | beck <> | 2023-07-08 16:40:14 +0000 |
commit | 14ddb694bbb3c9305a88c2f04345fb9499f8cd09 (patch) | |
tree | d94ae887e23f22265426a27314feb2539fbd467b /src/lib/libssl/tls12_record_layer.c | |
parent | fb3005d44347523e79c18cf8f224d6044f34af04 (diff) | |
download | openbsd-14ddb694bbb3c9305a88c2f04345fb9499f8cd09.tar.gz openbsd-14ddb694bbb3c9305a88c2f04345fb9499f8cd09.tar.bz2 openbsd-14ddb694bbb3c9305a88c2f04345fb9499f8cd09.zip |
Hide all public symbols in libssl
With the guentherizer 9000
ok tb@
Diffstat (limited to 'src/lib/libssl/tls12_record_layer.c')
-rw-r--r-- | src/lib/libssl/tls12_record_layer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/tls12_record_layer.c b/src/lib/libssl/tls12_record_layer.c index 59f5d32452..e0601363f6 100644 --- a/src/lib/libssl/tls12_record_layer.c +++ b/src/lib/libssl/tls12_record_layer.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls12_record_layer.c,v 1.38 2022/11/26 16:08:56 tb Exp $ */ | 1 | /* $OpenBSD: tls12_record_layer.c,v 1.39 2023/07/08 16:40:13 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -485,6 +485,8 @@ tls12_record_layer_ccs_cipher(struct tls12_record_layer *rl, | |||
485 | if (EVP_CIPHER_key_length(rl->cipher) != CBS_len(key)) | 485 | if (EVP_CIPHER_key_length(rl->cipher) != CBS_len(key)) |
486 | goto err; | 486 | goto err; |
487 | 487 | ||
488 | #ifndef OPENSSL_NO_GOST | ||
489 | /* XXX die die die | ||
488 | /* Special handling for GOST... */ | 490 | /* Special handling for GOST... */ |
489 | if (EVP_MD_type(rl->mac_hash) == NID_id_Gost28147_89_MAC) { | 491 | if (EVP_MD_type(rl->mac_hash) == NID_id_Gost28147_89_MAC) { |
490 | if (CBS_len(mac_key) != 32) | 492 | if (CBS_len(mac_key) != 32) |
@@ -492,11 +494,14 @@ tls12_record_layer_ccs_cipher(struct tls12_record_layer *rl, | |||
492 | mac_type = EVP_PKEY_GOSTIMIT; | 494 | mac_type = EVP_PKEY_GOSTIMIT; |
493 | rp->stream_mac = 1; | 495 | rp->stream_mac = 1; |
494 | } else { | 496 | } else { |
497 | #endif | ||
495 | if (CBS_len(mac_key) > INT_MAX) | 498 | if (CBS_len(mac_key) > INT_MAX) |
496 | goto err; | 499 | goto err; |
497 | if (EVP_MD_size(rl->mac_hash) != CBS_len(mac_key)) | 500 | if (EVP_MD_size(rl->mac_hash) != CBS_len(mac_key)) |
498 | goto err; | 501 | goto err; |
502 | #ifndef OPENSSL_NO_GOST | ||
499 | } | 503 | } |
504 | #endif | ||
500 | 505 | ||
501 | if ((rp->cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) | 506 | if ((rp->cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) |
502 | goto err; | 507 | goto err; |