summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_sxnet.c
diff options
context:
space:
mode:
authortb <>2018-05-13 15:03:01 +0000
committertb <>2018-05-13 15:03:01 +0000
commitc186a218ed0451160f25a29ca3912b0e94fbe3c0 (patch)
treef66ec32b93dc1ea0057257819082fa9250723107 /src/lib/libcrypto/x509v3/v3_sxnet.c
parent66b519dbc123befc55f3bda54c1b9c3f9a88d905 (diff)
downloadopenbsd-c186a218ed0451160f25a29ca3912b0e94fbe3c0.tar.gz
openbsd-c186a218ed0451160f25a29ca3912b0e94fbe3c0.tar.bz2
openbsd-c186a218ed0451160f25a29ca3912b0e94fbe3c0.zip
Add const qualifiers to the char *zone and char *user arguments of
SXNET_add_id_INTEGER(3), SXNET_add_id_asc(3), SXNET_add_id_ulong(3) tested in a bulk by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_sxnet.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_sxnet.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_sxnet.c b/src/lib/libcrypto/x509v3/v3_sxnet.c
index e113d5f7e2..53db28248a 100644
--- a/src/lib/libcrypto/x509v3/v3_sxnet.c
+++ b/src/lib/libcrypto/x509v3/v3_sxnet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_sxnet.c,v 1.20 2018/04/25 11:48:21 tb Exp $ */ 1/* $OpenBSD: v3_sxnet.c,v 1.21 2018/05/13 15:03:01 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -253,7 +253,7 @@ sxnet_v2i(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
253/* Add an id given the zone as an ASCII number */ 253/* Add an id given the zone as an ASCII number */
254 254
255int 255int
256SXNET_add_id_asc(SXNET **psx, char *zone, char *user, int userlen) 256SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen)
257{ 257{
258 ASN1_INTEGER *izone = NULL; 258 ASN1_INTEGER *izone = NULL;
259 259
@@ -267,7 +267,8 @@ SXNET_add_id_asc(SXNET **psx, char *zone, char *user, int userlen)
267/* Add an id given the zone as an unsigned long */ 267/* Add an id given the zone as an unsigned long */
268 268
269int 269int
270SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, char *user, int userlen) 270SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, const char *user,
271 int userlen)
271{ 272{
272 ASN1_INTEGER *izone = NULL; 273 ASN1_INTEGER *izone = NULL;
273 274
@@ -286,7 +287,8 @@ SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, char *user, int userlen)
286 */ 287 */
287 288
288int 289int
289SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, char *user, int userlen) 290SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, const char *user,
291 int userlen)
290{ 292{
291 SXNET *sx = NULL; 293 SXNET *sx = NULL;
292 SXNETID *id = NULL; 294 SXNETID *id = NULL;