diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-05-21 19:52:08 +0000 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-05-21 19:52:08 +0000 |
commit | 27ec82e781b3960693cd4550440ab7c1664553b8 (patch) | |
tree | dc23711551bd8f4dac5a8ebcf6ccb73c35720c14 | |
parent | 5791817e5f30b7ee2c206594104973cdb56e1d6b (diff) | |
parent | 04dd183b81fb9d53ef29448bf290c065646de501 (diff) | |
download | gnutls-27ec82e781b3960693cd4550440ab7c1664553b8.tar.gz |
Merge branch 'mark_const' into 'master'
Mark second argument of function gnutls_x509_crt_equals2 as const
See merge request gnutls/gnutls!1000
-rw-r--r-- | lib/includes/gnutls/x509.h | 2 | ||||
-rw-r--r-- | lib/x509/x509.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h index 516c8c6660..57ca4502f7 100644 --- a/lib/includes/gnutls/x509.h +++ b/lib/includes/gnutls/x509.h @@ -148,7 +148,7 @@ typedef enum gnutls_x509_crt_flags { void gnutls_x509_crt_set_flags(gnutls_x509_crt_t cert, unsigned flags); unsigned gnutls_x509_crt_equals(gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2); -unsigned gnutls_x509_crt_equals2(gnutls_x509_crt_t cert1, gnutls_datum_t * der); +unsigned gnutls_x509_crt_equals2(gnutls_x509_crt_t cert1, const gnutls_datum_t * der); int gnutls_x509_crt_import(gnutls_x509_crt_t cert, const gnutls_datum_t * data, diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 6abf3ca947..44418cb45f 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -150,7 +150,7 @@ unsigned gnutls_x509_crt_equals(gnutls_x509_crt_t cert1, **/ unsigned gnutls_x509_crt_equals2(gnutls_x509_crt_t cert1, - gnutls_datum_t * der) + const gnutls_datum_t * der) { bool result; |