summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-26 23:21:37 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-26 23:21:37 +0000
commit8193643e6216864331ea10045074e2936b71a884 (patch)
treed0e8f4657bce5d2da2c0efa99d169aec4d34b8e4 /lib
parent41b2e57afa7e227691bf8ce524f36cb8c31e66ce (diff)
Drop superfluous parentheses in X509_set_version()
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/x509/x509_set.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/x509/x509_set.c b/lib/libcrypto/x509/x509_set.c
index 4add8cf72df..442bc128279 100644
--- a/lib/libcrypto/x509/x509_set.c
+++ b/lib/libcrypto/x509/x509_set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_set.c,v 1.28 2024/03/26 22:44:57 tb Exp $ */
+/* $OpenBSD: x509_set.c,v 1.29 2024/03/26 23:21:36 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -83,19 +83,19 @@ int
X509_set_version(X509 *x, long version)
{
if (x == NULL)
- return (0);
+ return 0;
/*
* RFC 5280, 4.1: versions 1 - 3 are specified as follows.
* Version ::= INTEGER { v1(0), v2(1), v3(2) }
*/
if (version < 0 || version > 2)
- return (0);
+ return 0;
if (x->cert_info->version == NULL) {
if ((x->cert_info->version = ASN1_INTEGER_new()) == NULL)
- return (0);
+ return 0;
}
x->cert_info->enc.modified = 1;
- return (ASN1_INTEGER_set(x->cert_info->version, version));
+ return ASN1_INTEGER_set(x->cert_info->version, version);
}
LCRYPTO_ALIAS(X509_set_version);