summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/eck_prn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/eck_prn.c')
-rw-r--r--src/lib/libcrypto/ec/eck_prn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c
index 06cdd69591..653d78e5cd 100644
--- a/src/lib/libcrypto/ec/eck_prn.c
+++ b/src/lib/libcrypto/ec/eck_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eck_prn.c,v 1.11 2015/06/20 14:17:07 jsing Exp $ */ 1/* $OpenBSD: eck_prn.c,v 1.12 2017/01/29 17:49:23 beck Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -78,7 +78,7 @@ ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off)
78 int ret; 78 int ret;
79 79
80 if ((b = BIO_new(BIO_s_file())) == NULL) { 80 if ((b = BIO_new(BIO_s_file())) == NULL) {
81 ECerr(EC_F_ECPKPARAMETERS_PRINT_FP, ERR_R_BUF_LIB); 81 ECerror(ERR_R_BUF_LIB);
82 return (0); 82 return (0);
83 } 83 }
84 BIO_set_fp(b, fp, BIO_NOCLOSE); 84 BIO_set_fp(b, fp, BIO_NOCLOSE);
@@ -94,7 +94,7 @@ EC_KEY_print_fp(FILE * fp, const EC_KEY * x, int off)
94 int ret; 94 int ret;
95 95
96 if ((b = BIO_new(BIO_s_file())) == NULL) { 96 if ((b = BIO_new(BIO_s_file())) == NULL) {
97 ECerr(EC_F_EC_KEY_PRINT_FP, ERR_R_BIO_LIB); 97 ECerror(ERR_R_BIO_LIB);
98 return (0); 98 return (0);
99 } 99 }
100 BIO_set_fp(b, fp, BIO_NOCLOSE); 100 BIO_set_fp(b, fp, BIO_NOCLOSE);
@@ -110,7 +110,7 @@ ECParameters_print_fp(FILE * fp, const EC_KEY * x)
110 int ret; 110 int ret;
111 111
112 if ((b = BIO_new(BIO_s_file())) == NULL) { 112 if ((b = BIO_new(BIO_s_file())) == NULL) {
113 ECerr(EC_F_ECPARAMETERS_PRINT_FP, ERR_R_BIO_LIB); 113 ECerror(ERR_R_BIO_LIB);
114 return (0); 114 return (0);
115 } 115 }
116 BIO_set_fp(b, fp, BIO_NOCLOSE); 116 BIO_set_fp(b, fp, BIO_NOCLOSE);
@@ -323,7 +323,7 @@ ECPKParameters_print(BIO * bp, const EC_GROUP * x, int off)
323 ret = 1; 323 ret = 1;
324err: 324err:
325 if (!ret) 325 if (!ret)
326 ECerr(EC_F_ECPKPARAMETERS_PRINT, reason); 326 ECerror(reason);
327 BN_free(p); 327 BN_free(p);
328 BN_free(a); 328 BN_free(a);
329 BN_free(b); 329 BN_free(b);