pkgsrc/devel/eet/patches/patch-aa
2011-12-07 15:15:53 +00:00

24 lines
677 B
Text

$NetBSD: patch-aa,v 1.4 2011/12/07 15:15:53 joerg Exp $
--- src/lib/eet_cipher.c.orig 2011-11-21 02:09:15.000000000 +0000
+++ src/lib/eet_cipher.c
@@ -407,8 +407,18 @@ on_error:
dh = EVP_PKEY_get1_DH(key->private_key);
if (dh)
{
+ BIO *b;
fprintf(out, "Private key (DH):\n");
- DHparams_print_fp(out, dh);
+ if ((b=BIO_new(BIO_s_file())) == NULL)
+ {
+ DHerr(DH_F_DHPARAMS_PRINT_FP,ERR_R_BUF_LIB);
+ }
+ else
+ {
+ BIO_set_fp(b, out, BIO_NOCLOSE);
+ DHparams_print(b, dh);
+ BIO_free(b);
+ }
}
fprintf(out, "Public certificate:\n");