summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_att.c
diff options
context:
space:
mode:
authortb <>2018-05-18 19:21:33 +0000
committertb <>2018-05-18 19:21:33 +0000
commitf91d4aaae12c6f9d20b432592b82becaa8347a0c (patch)
tree8de6f4a7bc60032d4b01594033ccc9f64c6750f9 /src/lib/libcrypto/x509/x509_att.c
parent7c1bacfd1e2180b7fa9c03c8eb8a8d3217490562 (diff)
downloadopenbsd-f91d4aaae12c6f9d20b432592b82becaa8347a0c.tar.gz
openbsd-f91d4aaae12c6f9d20b432592b82becaa8347a0c.tar.bz2
openbsd-f91d4aaae12c6f9d20b432592b82becaa8347a0c.zip
Add const to the argument of X509_ATTRIBUTE_count(3).
tested in a bulk build by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_att.c')
-rw-r--r--src/lib/libcrypto/x509/x509_att.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_att.c b/src/lib/libcrypto/x509/x509_att.c
index edadacc2c7..1479b918c7 100644
--- a/src/lib/libcrypto/x509/x509_att.c
+++ b/src/lib/libcrypto/x509/x509_att.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_att.c,v 1.16 2018/05/13 06:48:00 tb Exp $ */ 1/* $OpenBSD: x509_att.c,v 1.17 2018/05/18 19:21:33 tb 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 *
@@ -353,7 +353,7 @@ err:
353} 353}
354 354
355int 355int
356X509_ATTRIBUTE_count(X509_ATTRIBUTE *attr) 356X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr)
357{ 357{
358 if (!attr->single) 358 if (!attr->single)
359 return sk_ASN1_TYPE_num(attr->value.set); 359 return sk_ASN1_TYPE_num(attr->value.set);