From 537acb7b351b5352e646e39cd2d569bd0afa2412 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Dec 2003 03:52:51 +0000 Subject: [PATCH] * util_crypt.c (kg_encrypt, kg_decrypt): Input pointer now points to const. * gssapiP_krb5.h: Declarations updated. * util_seed.c (zeros): Now const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15956 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 7 +++++++ src/lib/gssapi/krb5/gssapiP_krb5.h | 4 ++-- src/lib/gssapi/krb5/util_crypt.c | 4 ++-- src/lib/gssapi/krb5/util_seed.c | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 91f4d9d52..fefdb9ff4 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,10 @@ +2003-12-19 Ken Raeburn + + * util_crypt.c (kg_encrypt, kg_decrypt): Input pointer now points + to const. + * gssapiP_krb5.h: Declarations updated. + * util_seed.c (zeros): Now const. + 2003-12-19 Tom Yu * init_sec_context.c: Include k5-int.h for accessor. diff --git a/src/lib/gssapi/krb5/gssapiP_krb5.h b/src/lib/gssapi/krb5/gssapiP_krb5.h index cee702bcd..c6d8769e1 100644 --- a/src/lib/gssapi/krb5/gssapiP_krb5.h +++ b/src/lib/gssapi/krb5/gssapiP_krb5.h @@ -252,7 +252,7 @@ krb5_error_code kg_make_confounder (krb5_context context, krb5_error_code kg_encrypt (krb5_context context, krb5_keyblock *key, int usage, krb5_pointer iv, - krb5_pointer in, + krb5_const_pointer in, krb5_pointer out, unsigned int length); krb5_error_code @@ -264,7 +264,7 @@ kg_arcfour_docrypt (const krb5_keyblock *longterm_key , int ms_usage, krb5_error_code kg_decrypt (krb5_context context, krb5_keyblock *key, int usage, krb5_pointer iv, - krb5_pointer in, + krb5_const_pointer in, krb5_pointer out, unsigned int length); diff --git a/src/lib/gssapi/krb5/util_crypt.c b/src/lib/gssapi/krb5/util_crypt.c index ec2f25375..dad4b023d 100644 --- a/src/lib/gssapi/krb5/util_crypt.c +++ b/src/lib/gssapi/krb5/util_crypt.c @@ -96,7 +96,7 @@ kg_encrypt(context, key, usage, iv, in, out, length) krb5_keyblock *key; int usage; krb5_pointer iv; - krb5_pointer in; + krb5_const_pointer in; krb5_pointer out; unsigned int length; { @@ -140,7 +140,7 @@ kg_decrypt(context, key, usage, iv, in, out, length) krb5_keyblock *key; int usage; krb5_pointer iv; - krb5_pointer in; + krb5_const_pointer in; krb5_pointer out; unsigned int length; { diff --git a/src/lib/gssapi/krb5/util_seed.c b/src/lib/gssapi/krb5/util_seed.c index 03563f4f0..9d39e4937 100644 --- a/src/lib/gssapi/krb5/util_seed.c +++ b/src/lib/gssapi/krb5/util_seed.c @@ -25,7 +25,7 @@ #include #endif -static unsigned char zeros[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}; +static const unsigned char zeros[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}; krb5_error_code kg_make_seed(context, key, seed) -- 2.26.2