From: tb Date: Wed, 5 Jun 2024 04:50:36 +0000 (+0000) Subject: make test struct const X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ab8869766b8755de4758770194c8322770d0041f;p=openbsd make test struct const --- diff --git a/regress/lib/libssl/unit/tls_prf.c b/regress/lib/libssl/unit/tls_prf.c index b6836da167e..ea753f46ff3 100644 --- a/regress/lib/libssl/unit/tls_prf.c +++ b/regress/lib/libssl/unit/tls_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_prf.c,v 1.9 2024/02/03 15:58:34 beck Exp $ */ +/* $OpenBSD: tls_prf.c,v 1.10 2024/06/05 04:50:36 tb Exp $ */ /* * Copyright (c) 2017 Joel Sing * @@ -33,7 +33,7 @@ struct tls_prf_test { const unsigned char out[TLS_PRF_OUT_LEN]; }; -static struct tls_prf_test tls_prf_tests[] = { +static const struct tls_prf_test tls_prf_tests[] = { { .desc = "MD5+SHA1", .ssl_method = TLSv1_method, @@ -127,7 +127,7 @@ hexdump(const unsigned char *buf, size_t len) } static int -do_tls_prf_test(int test_no, struct tls_prf_test *tpt) +do_tls_prf_test(int test_no, const struct tls_prf_test *tpt) { unsigned char *out = NULL; const SSL_CIPHER *cipher;