]> git.ipfire.org Git - thirdparty/krb5.git/commit
Cast away constness when assigning to krb5_data 368/head
authorTom Yu <tlyu@mit.edu>
Fri, 11 Dec 2015 21:01:08 +0000 (16:01 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 11 Dec 2015 22:59:21 +0000 (17:59 -0500)
commite534f688db29945e4efde425f62ce7dae4608f6f
tree9b0ee9b2c6b881fa66f4f4c7b37259182db6154b
parentb3722b5b4546e338d1d3dd9f359b1a15742b8508
Cast away constness when assigning to krb5_data

Some password-changing library functions take a const char * parameter
but try to assign it to krb5_data.data, which isn't const.  PR #364
causes some compilers to produce errors in such situations, so cast
away the constness.  This is almost certainly safe because of the
nature of the code that consumes these krb5_data values.
src/lib/kdb/kdb_cpw.c
src/lib/krb5/krb/chpw.c