Constify some ASN1_OBJECT *obj input parameters
[openssl.git] / crypto / x509 / x509_req.c
index e1d2c2002be05e6271cbe22177aa44f3ebf742e4..e7c2ae8a770d03f56e3f7b6f18e96a1feb53a39b 100644 (file)
@@ -214,7 +214,7 @@ int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos)
     return X509at_get_attr_by_NID(req->req_info.attributes, nid, lastpos);
 }
 
-int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, ASN1_OBJECT *obj,
+int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,
                              int lastpos)
 {
     return X509at_get_attr_by_OBJ(req->req_info.attributes, obj, lastpos);