* util_crypt.c (kg_encrypt, kg_decrypt): Input pointer now points to const.
authorKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 03:52:51 +0000 (03:52 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 03:52:51 +0000 (03:52 +0000)
* 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
src/lib/gssapi/krb5/gssapiP_krb5.h
src/lib/gssapi/krb5/util_crypt.c
src/lib/gssapi/krb5/util_seed.c

index 91f4d9d522a1c6a7ed7573db23a4dca442e04e34..fefdb9ff47715a99948e9e2550a9d07ca5021a87 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-19  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <tlyu@mit.edu>
 
        * init_sec_context.c: Include k5-int.h for accessor.
index cee702bcd46507d2273c69735658fec1836c707c..c6d8769e1b61abc6e3314443c89422a2abd850a6 100644 (file)
@@ -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);
 
index ec2f25375a1fd9d165cf74e09c70da8ca2ebe6b7..dad4b023d22b443785b2d579f651226becd8491f 100644 (file)
@@ -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;
 {
index 03563f4f07bd74a56969bdbec7bfd5b2333be37f..9d39e493708981fd6c4e9a11145911dfeab00b38 100644 (file)
@@ -25,7 +25,7 @@
 #include <memory.h>
 #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)