diff --git a/lib/libkeynote/keynote-keygen.c b/lib/libkeynote/keynote-keygen.c index fa12e8fcc..e48db34f5 100644 --- a/lib/libkeynote/keynote-keygen.c +++ b/lib/libkeynote/keynote-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote-keygen.c,v 1.22 2015/11/19 02:35:24 mmcc Exp $ */ +/* $OpenBSD: keynote-keygen.c,v 1.23 2024/02/07 17:22:01 tb Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -176,8 +176,7 @@ keynote_keygen(int argc, char *argv[]) { RAND_bytes(seed, SEED_LEN); - dsa = DSA_generate_parameters(len, seed, SEED_LEN, - &counter, &h, NULL, NULL); + dsa = DSA_new(); if (dsa == NULL) { @@ -185,6 +184,13 @@ keynote_keygen(int argc, char *argv[]) exit(1); } + if (DSA_generate_parameters_ex(dsa, len, seed, SEED_LEN, + &counter, &h, NULL) != 1) + { + ERR_print_errors_fp(stderr); + exit(1); + } + if (DSA_generate_key(dsa) != 1) { ERR_print_errors_fp(stderr); diff --git a/regress/usr.sbin/ospf6d/Makefile b/regress/usr.sbin/ospf6d/Makefile index 9ec35d873..7bec3eebc 100644 --- a/regress/usr.sbin/ospf6d/Makefile +++ b/regress/usr.sbin/ospf6d/Makefile @@ -1,11 +1,15 @@ -# $OpenBSD: Makefile,v 1.4 2021/10/07 15:20:35 anton Exp $ +# $OpenBSD: Makefile,v 1.5 2024/02/07 19:26:58 anton Exp $ REGRESS_TARGETS= network_statement REGRESS_ROOT_TARGETS= ${REGRESS_TARGETS} OSPF6D ?= /usr/sbin/ospf6d +N1?= 11 +N2?= 12 + network_statement: - ${SUDO} ksh ${.CURDIR}/$@.sh ${OSPF6D} ${.CURDIR} ${.OBJDIR} 11 12 pair11 pair12 + ${SUDO} ksh ${.CURDIR}/$@.sh ${OSPF6D} ${.CURDIR} ${.OBJDIR} \ + ${N1} ${N2} pair${N1} pair${N2} .include diff --git a/usr.sbin/btrace/bt_parse.y b/usr.sbin/btrace/bt_parse.y index b378b89a0..b9feb008b 100644 --- a/usr.sbin/btrace/bt_parse.y +++ b/usr.sbin/btrace/bt_parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_parse.y,v 1.57 2024/01/16 14:35:56 claudio Exp $ */ +/* $OpenBSD: bt_parse.y,v 1.58 2024/02/07 19:07:42 mpi Exp $ */ /* * Copyright (c) 2019-2023 Martin Pieuchot @@ -611,6 +611,9 @@ bm_insert(const char *mname, struct bt_arg *mkey, struct bt_arg *mval) { struct bt_arg *ba; + if (mkey->ba_type == B_AT_TUPLE) + yyerror("tuple cannot be used as map key"); + ba = ba_new(bg_get(mname), B_AT_MAP); ba->ba_key = mkey;