summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/asn1/x_algor.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-01 19:01:27 +0000
committertb <tb@openbsd.org>2018-05-01 19:01:27 +0000
commit0267c20633f03671d9ebeb595083d24fca7b3a7c (patch)
treed4e5e2995b5a7eb056598a951322930dc8533eb4 /lib/libcrypto/asn1/x_algor.c
parentMention RFC 7217 and RFC 7772 (diff)
downloadwireguard-openbsd-0267c20633f03671d9ebeb595083d24fca7b3a7c.tar.xz
wireguard-openbsd-0267c20633f03671d9ebeb595083d24fca7b3a7c.zip
Convert a handful of X509_*() functions to take const as in OpenSSL.
tested in a bulk by sthen ok jsing
Diffstat (limited to 'lib/libcrypto/asn1/x_algor.c')
-rw-r--r--lib/libcrypto/asn1/x_algor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/asn1/x_algor.c b/lib/libcrypto/asn1/x_algor.c
index 27405a2bfb9..2013de795d1 100644
--- a/lib/libcrypto/asn1/x_algor.c
+++ b/lib/libcrypto/asn1/x_algor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_algor.c,v 1.21 2015/07/24 15:09:52 jsing Exp $ */
+/* $OpenBSD: x_algor.c,v 1.22 2018/05/01 19:01:27 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -176,8 +176,8 @@ X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
}
void
-X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval,
- X509_ALGOR *algor)
+X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype, const void **ppval,
+ const X509_ALGOR *algor)
{
if (paobj)
*paobj = algor->algorithm;