summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_att.c
diff options
context:
space:
mode:
authortb <>2018-05-13 06:48:00 +0000
committertb <>2018-05-13 06:48:00 +0000
commitacc2166d7c709d3d81530e1bbd78da9c236b7aed (patch)
tree5d58c9676f68a32754ca8b37042e2c12a075a0dc /src/lib/libcrypto/x509/x509_att.c
parentebeb5fa6115553ce7333b9b68a456e000fac881d (diff)
downloadopenbsd-acc2166d7c709d3d81530e1bbd78da9c236b7aed.tar.gz
openbsd-acc2166d7c709d3d81530e1bbd78da9c236b7aed.tar.bz2
openbsd-acc2166d7c709d3d81530e1bbd78da9c236b7aed.zip
Add a const qualifier to the ASN1_OBJECT * argument of the following:
EVP_PKEY_get_attr_by_OBJ(3), X509at_get_attr_by_OBJ(3), X509at_get0_data_by_OBJ(3), X509_REQ_get_attr_by_OBJ(3) tested in a bulk by sthen ok beck (as part of a larger diff)
Diffstat (limited to 'src/lib/libcrypto/x509/x509_att.c')
-rw-r--r--src/lib/libcrypto/x509/x509_att.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_att.c b/src/lib/libcrypto/x509/x509_att.c
index 7304118eb3..edadacc2c7 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.15 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: x509_att.c,v 1.16 2018/05/13 06:48:00 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 *
@@ -84,8 +84,8 @@ X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid, int lastpos)
84} 84}
85 85
86int 86int
87X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, ASN1_OBJECT *obj, 87X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk,
88 int lastpos) 88 const ASN1_OBJECT *obj, int lastpos)
89{ 89{
90 int n; 90 int n;
91 X509_ATTRIBUTE *ex; 91 X509_ATTRIBUTE *ex;
@@ -205,7 +205,7 @@ X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) **x, const char *attrname,
205} 205}
206 206
207void * 207void *
208X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, ASN1_OBJECT *obj, 208X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, const ASN1_OBJECT *obj,
209 int lastpos, int type) 209 int lastpos, int type)
210{ 210{
211 int i; 211 int i;