From 816aef0b43c260775556c0bf5a307d59c4e658c1 Mon Sep 17 00:00:00 2001 From: jsing Date: Tue, 11 Jan 2022 18:29:10 +0000 Subject: [PATCH] Revise for changes to tls_key_share_peer_public() --- regress/lib/libssl/tlsext/tlsexttest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c index 6cfe20f5699..69460740383 100644 --- a/regress/lib/libssl/tlsext/tlsexttest.c +++ b/regress/lib/libssl/tlsext/tlsexttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlsexttest.c,v 1.57 2022/01/06 18:27:31 jsing Exp $ */ +/* $OpenBSD: tlsexttest.c,v 1.58 2022/01/11 18:29:10 jsing Exp $ */ /* * Copyright (c) 2017 Joel Sing * Copyright (c) 2017 Doug Hogan @@ -3243,6 +3243,7 @@ test_tlsext_keyshare_server(void) unsigned char *data = NULL; SSL_CTX *ssl_ctx = NULL; SSL *ssl = NULL; + int decode_error; int failure = 1; size_t dlen, idx; int alert; @@ -3303,7 +3304,8 @@ test_tlsext_keyshare_server(void) CBS_init(&cbs, bogokey, sizeof(bogokey)); - if (!tls_key_share_peer_public(S3I(ssl)->hs.key_share, &cbs, NULL)) { + if (!tls_key_share_peer_public(S3I(ssl)->hs.key_share, &cbs, + &decode_error, NULL)) { FAIL("failed to load peer public key\n"); goto done; } -- 2.20.1