From 0ba124178c4ac8337f174c3d5a5a8e102a3fa367 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 17 Apr 2023 05:51:16 +0000 Subject: Move DHparam_print_fp() next to DHparam_print() As usual with the fp suffix, the former wraps the latter with a file BIO. There is no reason for this function to be in a separate file. --- src/lib/libcrypto/dh/dh_prn.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/lib/libcrypto/dh/dh_prn.c') diff --git a/src/lib/libcrypto/dh/dh_prn.c b/src/lib/libcrypto/dh/dh_prn.c index 56a96f8631..2c6d17938b 100644 --- a/src/lib/libcrypto/dh/dh_prn.c +++ b/src/lib/libcrypto/dh/dh_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_prn.c,v 1.6 2017/01/29 17:49:22 beck Exp $ */ +/* $OpenBSD: dh_prn.c,v 1.7 2023/04/17 05:51:16 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -62,18 +62,3 @@ #include #include -int -DHparams_print_fp(FILE *fp, const DH *x) -{ - BIO *b; - int ret; - - if ((b = BIO_new(BIO_s_file())) == NULL) { - DHerror(ERR_R_BUF_LIB); - return 0; - } - BIO_set_fp(b,fp,BIO_NOCLOSE); - ret = DHparams_print(b, x); - BIO_free(b); - return ret; -} -- cgit v1.2.3-55-g6feb