summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2022-01-11 18:29:10 +0000
committerjsing <>2022-01-11 18:29:10 +0000
commitd4ce9c2bac946bbdc71968607877005d28948186 (patch)
tree4cadd96f50c14d89377fda17f46ad1f76b7910c6 /src
parent7af437db632fa247609a08c8b60d48ae34bf3d68 (diff)
downloadopenbsd-d4ce9c2bac946bbdc71968607877005d28948186.tar.gz
openbsd-d4ce9c2bac946bbdc71968607877005d28948186.tar.bz2
openbsd-d4ce9c2bac946bbdc71968607877005d28948186.zip
Revise for changes to tls_key_share_peer_public()
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 6cfe20f569..6946074038 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.57 2022/01/06 18:27:31 jsing Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.58 2022/01/11 18:29:10 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -3243,6 +3243,7 @@ test_tlsext_keyshare_server(void)
3243 unsigned char *data = NULL; 3243 unsigned char *data = NULL;
3244 SSL_CTX *ssl_ctx = NULL; 3244 SSL_CTX *ssl_ctx = NULL;
3245 SSL *ssl = NULL; 3245 SSL *ssl = NULL;
3246 int decode_error;
3246 int failure = 1; 3247 int failure = 1;
3247 size_t dlen, idx; 3248 size_t dlen, idx;
3248 int alert; 3249 int alert;
@@ -3303,7 +3304,8 @@ test_tlsext_keyshare_server(void)
3303 3304
3304 CBS_init(&cbs, bogokey, sizeof(bogokey)); 3305 CBS_init(&cbs, bogokey, sizeof(bogokey));
3305 3306
3306 if (!tls_key_share_peer_public(S3I(ssl)->hs.key_share, &cbs, NULL)) { 3307 if (!tls_key_share_peer_public(S3I(ssl)->hs.key_share, &cbs,
3308 &decode_error, NULL)) {
3307 FAIL("failed to load peer public key\n"); 3309 FAIL("failed to load peer public key\n");
3308 goto done; 3310 goto done;
3309 } 3311 }