summaryrefslogtreecommitdiff
path: root/devel/eet/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'devel/eet/patches/patch-aa')
-rw-r--r--devel/eet/patches/patch-aa42
1 files changed, 21 insertions, 21 deletions
diff --git a/devel/eet/patches/patch-aa b/devel/eet/patches/patch-aa
index 9b13bf69ab4..f626a47cd68 100644
--- a/devel/eet/patches/patch-aa
+++ b/devel/eet/patches/patch-aa
@@ -1,24 +1,24 @@
-$NetBSD: patch-aa,v 1.2 2009/06/10 06:40:11 minskim Exp $
+$NetBSD: patch-aa,v 1.3 2011/12/05 17:20:14 joerg Exp $
---- src/lib/eet_cipher.c.orig 2009-04-18 09:24:20.000000000 -0700
+--- src/lib/eet_cipher.c.orig 2011-11-21 02:09:15.000000000 +0000
+++ src/lib/eet_cipher.c
-@@ -315,8 +315,18 @@ eet_identity_print(Eet_Key *key, FILE *o
- 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);
-+ }
- }
+@@ -407,8 +407,19 @@ 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");
+ fprintf(out, "Public certificate:\n");