From: schwarze Date: Wed, 24 Nov 2021 13:30:56 +0000 (+0000) Subject: add the missing const qualifiers below EXAMPLES; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5f8f36221bb43e6b6da3e32feec0e7fd6bea0892;p=openbsd add the missing const qualifiers below EXAMPLES; from via OpenSSL commit 256989ce in the OpenSSL 1.1.1 branch, which is still under a free license --- diff --git a/lib/libcrypto/man/ASN1_item_d2i.3 b/lib/libcrypto/man/ASN1_item_d2i.3 index dbad1351a6a..af98a5740a8 100644 --- a/lib/libcrypto/man/ASN1_item_d2i.3 +++ b/lib/libcrypto/man/ASN1_item_d2i.3 @@ -1,5 +1,6 @@ -.\" $OpenBSD: ASN1_item_d2i.3,v 1.13 2021/11/24 13:18:08 schwarze Exp $ -.\" OpenSSL doc/man3/d2i_X509.pod b97fdb57 Nov 11 09:33:09 2016 +0100 +.\" $OpenBSD: ASN1_item_d2i.3,v 1.14 2021/11/24 13:30:56 schwarze Exp $ +.\" selective merge up to: +.\" OpenSSL doc/man3/d2i_X509.pod 256989ce Jun 19 15:00:32 2020 +0200 .\" .\" This file is a derived work. .\" The changes are covered by the following Copyright and license: @@ -350,9 +351,10 @@ if (len < 0) .Pp Attempt to decode a buffer: .Bd -literal -offset indent -X509 *x; -unsigned char *buf, *p; -int len; +X509 *x; +unsigned char *buf; +const unsigned char *p; +int len; /* Set up buf and len to point to the input buffer. */ p = buf; @@ -363,9 +365,10 @@ if (x == NULL) .Pp Equivalent technique: .Bd -literal -offset indent -X509 *x; -unsigned char *buf, *p; -int len; +X509 *x; +unsigned char *buf; +const unsigned char *p; +int len; /* Set up buf and len to point to the input buffer. */ p = buf;