summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_req.c
diff options
context:
space:
mode:
authortb <>2018-05-13 06:48:00 +0000
committertb <>2018-05-13 06:48:00 +0000
commit583a09c8fc1223d311c580a49606645740ab6048 (patch)
tree5d58c9676f68a32754ca8b37042e2c12a075a0dc /src/lib/libcrypto/x509/x509_req.c
parentf7943a7d637c81a04f4e7be8825fd5bd5d278761 (diff)
downloadopenbsd-583a09c8fc1223d311c580a49606645740ab6048.tar.gz
openbsd-583a09c8fc1223d311c580a49606645740ab6048.tar.bz2
openbsd-583a09c8fc1223d311c580a49606645740ab6048.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_req.c')
-rw-r--r--src/lib/libcrypto/x509/x509_req.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c
index f87b35c706..b44306b00d 100644
--- a/src/lib/libcrypto/x509/x509_req.c
+++ b/src/lib/libcrypto/x509/x509_req.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_req.c,v 1.20 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: x509_req.c,v 1.21 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 *
@@ -286,7 +286,8 @@ X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos)
286} 286}
287 287
288int 288int
289X509_REQ_get_attr_by_OBJ(const X509_REQ *req, ASN1_OBJECT *obj, int lastpos) 289X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,
290 int lastpos)
290{ 291{
291 return X509at_get_attr_by_OBJ(req->req_info->attributes, obj, lastpos); 292 return X509at_get_attr_by_OBJ(req->req_info->attributes, obj, lastpos);
292} 293}