diff options
| author | tb <> | 2026-06-08 12:05:25 +0000 |
|---|---|---|
| committer | tb <> | 2026-06-08 12:05:25 +0000 |
| commit | 47439108a83a3142292d6cdb68f3f053aafc733c (patch) | |
| tree | b70cdf2f8692717be944025d222b71d911baae35 /src | |
| parent | c4670875f114f1b23fa143017826168c00519b56 (diff) | |
| download | openbsd-47439108a83a3142292d6cdb68f3f053aafc733c.tar.gz openbsd-47439108a83a3142292d6cdb68f3f053aafc733c.tar.bz2 openbsd-47439108a83a3142292d6cdb68f3f053aafc733c.zip | |
tlsext: add XXX to consider refusing anything but uncompressed point format
ok jsing kenjiro
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index ccdb5d1dfa..22c5e7d1b1 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_tlsext.c,v 1.161 2026/06/06 08:45:41 tb Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.162 2026/06/08 12:05:25 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
| @@ -386,6 +386,8 @@ tlsext_ecpf_process(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) | |||
| 386 | if (CBS_len(&ecpf) == 0) | 386 | if (CBS_len(&ecpf) == 0) |
| 387 | return 0; | 387 | return 0; |
| 388 | 388 | ||
| 389 | /* XXX - tighten this to reject anything but uncompressed format? */ | ||
| 390 | |||
| 389 | /* Must contain uncompressed (0) - RFC 8422, section 5.1.2. */ | 391 | /* Must contain uncompressed (0) - RFC 8422, section 5.1.2. */ |
| 390 | if (!CBS_contains_zero_byte(&ecpf)) { | 392 | if (!CBS_contains_zero_byte(&ecpf)) { |
| 391 | SSLerror(s, SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); | 393 | SSLerror(s, SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); |
