summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-12-26 15:38:49 +0000
committertb <>2021-12-26 15:38:49 +0000
commit83462404240881c95961517cf431e4ff45a387b7 (patch)
treea9c721799fc5bf25b71b4db225ee19613cf0fa58
parent227a7bb288cbe5916b1842111e0352f43e59565c (diff)
downloadopenbsd-83462404240881c95961517cf431e4ff45a387b7.tar.gz
openbsd-83462404240881c95961517cf431e4ff45a387b7.tar.bz2
openbsd-83462404240881c95961517cf431e4ff45a387b7.zip
Check BIO_indent() return like all the others in this file.
CID 345118
-rw-r--r--src/lib/libcrypto/gost/gostr341001_ameth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/gost/gostr341001_ameth.c b/src/lib/libcrypto/gost/gostr341001_ameth.c
index d4c3d8a9c7..ce203a6c21 100644
--- a/src/lib/libcrypto/gost/gostr341001_ameth.c
+++ b/src/lib/libcrypto/gost/gostr341001_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gostr341001_ameth.c,v 1.18 2021/12/12 21:30:14 tb Exp $ */ 1/* $OpenBSD: gostr341001_ameth.c,v 1.19 2021/12/26 15:38:49 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 3 * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
4 * Copyright (c) 2005-2006 Cryptocom LTD 4 * Copyright (c) 2005-2006 Cryptocom LTD
@@ -365,7 +365,8 @@ pub_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)
365 BIO_printf(out, "X:"); 365 BIO_printf(out, "X:");
366 BN_print(out, X); 366 BN_print(out, X);
367 BIO_printf(out, "\n"); 367 BIO_printf(out, "\n");
368 BIO_indent(out, indent + 3, 128); 368 if (BIO_indent(out, indent + 3, 128) == 0)
369 goto err;
369 BIO_printf(out, "Y:"); 370 BIO_printf(out, "Y:");
370 BN_print(out, Y); 371 BN_print(out, Y);
371 BIO_printf(out, "\n"); 372 BIO_printf(out, "\n");