9c45e0c9e6
Changes: - Fixes to data codecs (data descriptors). - Fixes for non-existing files opened READ/WRITE and other miscellanouse bugs found. - Speedups for decoding and lookups, make inline-image decode better on some platforms and add signed-eet file support as well as opening eet files from memory.
24 lines
633 B
Text
24 lines
633 B
Text
$NetBSD: patch-aa,v 1.1 2008/10/26 04:48:22 minskim Exp $
|
|
|
|
--- src/lib/eet_cypher.c.orig 2008-09-09 05:40:54.000000000 -0700
|
|
+++ src/lib/eet_cypher.c
|
|
@@ -92,8 +92,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);
|
|
+ }
|
|
}
|
|
|
|
fprintf(out, "Public certificate :\n");
|