summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs12/p12_utl.c
diff options
context:
space:
mode:
authortb <>2018-05-30 15:32:11 +0000
committertb <>2018-05-30 15:32:11 +0000
commit87588ca5f85a92585105f886faa049e39b3feb2c (patch)
tree61b38ee6ada66e260c5010e819741dd1186d0f51 /src/lib/libcrypto/pkcs12/p12_utl.c
parentba417c1f27f6729e06c935d52544e49aa831b602 (diff)
downloadopenbsd-87588ca5f85a92585105f886faa049e39b3feb2c.tar.gz
openbsd-87588ca5f85a92585105f886faa049e39b3feb2c.tar.bz2
openbsd-87588ca5f85a92585105f886faa049e39b3feb2c.zip
Add a const qualifier to the `uni' argument of OPENSSL_uni2asc().
tested in a bulk build by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/pkcs12/p12_utl.c')
-rw-r--r--src/lib/libcrypto/pkcs12/p12_utl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/pkcs12/p12_utl.c b/src/lib/libcrypto/pkcs12/p12_utl.c
index eb95417d1b..ff3a035d3f 100644
--- a/src/lib/libcrypto/pkcs12/p12_utl.c
+++ b/src/lib/libcrypto/pkcs12/p12_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p12_utl.c,v 1.15 2016/12/30 15:34:35 jsing Exp $ */ 1/* $OpenBSD: p12_utl.c,v 1.16 2018/05/30 15:32:11 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 */
@@ -100,7 +100,7 @@ OPENSSL_asc2uni(const char *asc, int asclen, unsigned char **uni, int *unilen)
100} 100}
101 101
102char * 102char *
103OPENSSL_uni2asc(unsigned char *uni, int unilen) 103OPENSSL_uni2asc(const unsigned char *uni, int unilen)
104{ 104{
105 size_t asclen, u16len, i; 105 size_t asclen, u16len, i;
106 char *asctmp; 106 char *asctmp;