diff options
author | miod <> | 2014-07-09 13:26:47 +0000 |
---|---|---|
committer | miod <> | 2014-07-09 13:26:47 +0000 |
commit | 7b0280e96c976103d66ebabe5a23f4f9e18a88f1 (patch) | |
tree | efa6e3fe5e9cccf6532f4f9d3fd222d9fbb45764 /src/lib/libcrypto/dh/dh_prn.c | |
parent | 4b7ee752ce92891c2906d9e0a72e420564d3dfd1 (diff) | |
download | openbsd-7b0280e96c976103d66ebabe5a23f4f9e18a88f1.tar.gz openbsd-7b0280e96c976103d66ebabe5a23f4f9e18a88f1.tar.bz2 openbsd-7b0280e96c976103d66ebabe5a23f4f9e18a88f1.zip |
KNF
Diffstat (limited to 'src/lib/libcrypto/dh/dh_prn.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_prn.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/dh/dh_prn.c b/src/lib/libcrypto/dh/dh_prn.c index a249b650f8..846419691e 100644 --- a/src/lib/libcrypto/dh/dh_prn.c +++ b/src/lib/libcrypto/dh/dh_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_prn.c,v 1.3 2014/06/12 15:49:28 deraadt Exp $ */ | 1 | /* $OpenBSD: dh_prn.c,v 1.4 2014/07/09 13:26:47 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,18 +61,18 @@ | |||
61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
62 | #include <openssl/dh.h> | 62 | #include <openssl/dh.h> |
63 | 63 | ||
64 | int DHparams_print_fp(FILE *fp, const DH *x) | 64 | int |
65 | { | 65 | DHparams_print_fp(FILE *fp, const DH *x) |
66 | { | ||
66 | BIO *b; | 67 | BIO *b; |
67 | int ret; | 68 | int ret; |
68 | 69 | ||
69 | if ((b=BIO_new(BIO_s_file())) == NULL) | 70 | if ((b = BIO_new(BIO_s_file())) == NULL) { |
70 | { | 71 | DHerr(DH_F_DHPARAMS_PRINT_FP, ERR_R_BUF_LIB); |
71 | DHerr(DH_F_DHPARAMS_PRINT_FP,ERR_R_BUF_LIB); | 72 | return 0; |
72 | return(0); | 73 | } |
73 | } | ||
74 | BIO_set_fp(b,fp,BIO_NOCLOSE); | 74 | BIO_set_fp(b,fp,BIO_NOCLOSE); |
75 | ret=DHparams_print(b, x); | 75 | ret = DHparams_print(b, x); |
76 | BIO_free(b); | 76 | BIO_free(b); |
77 | return(ret); | 77 | return ret; |
78 | } | 78 | } |