]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add const to 'ppin' function parameter
authorolszomal <Malgorzata.Olszowka@stunnel.org>
Fri, 19 Jun 2020 13:00:32 +0000 (15:00 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 21 Sep 2020 14:56:18 +0000 (16:56 +0200)
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #12205
(cherry picked from commit 434343f896a2bb3e5857cc9831c38f8cd1cceec1)

doc/man3/d2i_DHparams.pod
doc/man3/d2i_X509.pod

index d4e34fe877feb12046316eed56d3de2b22903de4..befcafa8a16e30158db0290e1efa1fbf8585c9f4 100644 (file)
@@ -8,7 +8,7 @@ d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
 
  #include <openssl/dh.h>
 
- DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
+ DH *d2i_DHparams(DH **a, const unsigned char **pp, long length);
  int i2d_DHparams(DH *a, unsigned char **pp);
 
 =head1 DESCRIPTION
index 245df0c8d9dd152e0c9d744942a4fcf1da70ecf9..e42049d2baec563a7e932ea46fb648f6f31ff40b 100644 (file)
@@ -365,7 +365,7 @@ i2d_X509_VAL,
 
 =for comment generic
 
- TYPE *d2i_TYPE(TYPE **a, unsigned char **ppin, long length);
+ TYPE *d2i_TYPE(TYPE **a, const unsigned char **ppin, long length);
  TYPE *d2i_TYPE_bio(BIO *bp, TYPE **a);
  TYPE *d2i_TYPE_fp(FILE *fp, TYPE **a);
 
@@ -529,7 +529,8 @@ Allocate and encode the DER encoding of an X509 structure:
 Attempt to decode a buffer:
 
  X509 *x;
- unsigned char *buf, *p;
+ unsigned char *buf;
+ const unsigned char *p;
  int len;
 
  /* Set up buf and len to point to the input buffer. */
@@ -541,7 +542,8 @@ Attempt to decode a buffer:
 Alternative technique:
 
  X509 *x;
- unsigned char *buf, *p;
+ unsigned char *buf;
+ const unsigned char *p;
  int len;
 
  /* Set up buf and len to point to the input buffer. */