diff options
| author | tb <> | 2018-05-18 19:21:33 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-18 19:21:33 +0000 |
| commit | d33bb26bea662a4e8b7eda24cb7fe36230fc5f9e (patch) | |
| tree | 8de6f4a7bc60032d4b01594033ccc9f64c6750f9 /src/lib/libcrypto/x509/x509_att.c | |
| parent | 21029eda6d5dcfa0cfc148233cc5ee760f435323 (diff) | |
| download | openbsd-d33bb26bea662a4e8b7eda24cb7fe36230fc5f9e.tar.gz openbsd-d33bb26bea662a4e8b7eda24cb7fe36230fc5f9e.tar.bz2 openbsd-d33bb26bea662a4e8b7eda24cb7fe36230fc5f9e.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.c | 4 |
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 | ||
| 355 | int | 355 | int |
| 356 | X509_ATTRIBUTE_count(X509_ATTRIBUTE *attr) | 356 | X509_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); |
