]> 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:54:42 +0000 (16:54 +0200)
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #12205

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

index c554099816b2251466ea9e057918399b6f032a1f..83c3fd9c4b272b558524ab965d268cb5852e0da2 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 971339bba0bd74e31419411245ddcceb86b4a05b..a46977bc937fa2742250c9f976f7b2f4a872103e 100644 (file)
@@ -397,7 +397,7 @@ i2d_X509_VAL,
 
 =for openssl 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);
 
@@ -564,7 +564,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. */
@@ -576,7 +577,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. */