+2002-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * krb5.hin (krb5_encrypt, krb5_decrypt, krb5_use_enctype,
+ krb5_calculate_checksum, krb5_verify_checksum,
+ krb5_get_credentials, krb5_get_credentials_validate,
+ krb5_get_credentials_renew, krb5_get_cred_via_tkt, krb5_mk_req,
+ krb5_mk_req_extended, krb5_524_conv_principal, krb5_send_tgs,
+ krb5_get_in_tkt, krb5_get_in_tkt_with_password,
+ krb5_get_in_tkt_with_skey, krb5_get_in_tkt_with_keytab,
+ krb5_aname_to_localname): Clean up use of "const" in API, where it
+ was applied to the value passed and not something pointed to.
+
2002-12-12 Tom Yu <tlyu@mit.edu>
* krb5.hin: Update comment on krb5_kt_free_entry prototype to
*/
krb5_error_code KRB5_CALLCONV krb5_encrypt
(krb5_context context,
- const krb5_pointer inptr,
+ krb5_const_pointer inptr,
krb5_pointer outptr,
- const size_t size,
+ size_t size,
krb5_encrypt_block * eblock,
krb5_pointer ivec);
krb5_error_code KRB5_CALLCONV krb5_decrypt
(krb5_context context,
- const krb5_pointer inptr,
+ krb5_const_pointer inptr,
krb5_pointer outptr,
- const size_t size,
+ size_t size,
krb5_encrypt_block * eblock,
krb5_pointer ivec);
krb5_error_code KRB5_CALLCONV krb5_process_key
krb5_error_code KRB5_CALLCONV krb5_use_enctype
(krb5_context context,
krb5_encrypt_block * eblock,
- const krb5_enctype enctype);
+ krb5_enctype enctype);
size_t KRB5_CALLCONV krb5_encrypt_size
(size_t length,
krb5_enctype crypto);
krb5_cksumtype ctype);
krb5_error_code KRB5_CALLCONV krb5_calculate_checksum
(krb5_context context,
- const krb5_cksumtype ctype,
- const krb5_pointer in, const size_t in_length,
- const krb5_pointer seed, const size_t seed_length,
+ krb5_cksumtype ctype,
+ krb5_const_pointer in, size_t in_length,
+ krb5_const_pointer seed, size_t seed_length,
krb5_checksum * outcksum);
krb5_error_code KRB5_CALLCONV krb5_verify_checksum
(krb5_context context,
krb5_cksumtype ctype,
const krb5_checksum * cksum,
- const krb5_pointer in, const size_t in_length,
- const krb5_pointer seed, const size_t seed_length);
+ krb5_const_pointer in, size_t in_length,
+ krb5_const_pointer seed, size_t seed_length);
#if KRB5_PRIVATE
krb5_error_code KRB5_CALLCONV krb5_random_confounder
krb5_error_code KRB5_CALLCONV krb5_get_credentials
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_ccache,
krb5_creds *,
krb5_creds **);
krb5_error_code KRB5_CALLCONV krb5_get_credentials_validate
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_ccache,
krb5_creds *,
krb5_creds **);
krb5_error_code KRB5_CALLCONV krb5_get_credentials_renew
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_ccache,
krb5_creds *,
krb5_creds **);
krb5_error_code krb5_get_cred_via_tkt
(krb5_context,
krb5_creds *,
- const krb5_flags,
+ krb5_flags,
krb5_address * const *,
krb5_creds *,
krb5_creds **);
krb5_error_code KRB5_CALLCONV krb5_mk_req
(krb5_context,
krb5_auth_context *,
- const krb5_flags,
+ krb5_flags,
char *,
char *,
krb5_data *,
krb5_error_code KRB5_CALLCONV krb5_mk_req_extended
(krb5_context,
krb5_auth_context *,
- const krb5_flags,
+ krb5_flags,
krb5_data *,
krb5_creds *,
krb5_data * );
krb5_principal *princ);
krb5_error_code KRB5_CALLCONV krb5_524_conv_principal
- (krb5_context context, const krb5_principal princ,
+ (krb5_context context, krb5_const_principal princ,
char *name, char *inst, char *realm);
#if KRB5_PRIVATE
#if KRB5_PRIVATE
krb5_error_code krb5_send_tgs
(krb5_context,
- const krb5_flags,
+ krb5_flags,
const krb5_ticket_times *,
const krb5_enctype *,
krb5_const_principal,
#if KRB5_DEPRECATED
krb5_error_code KRB5_CALLCONV krb5_get_in_tkt
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_address * const *,
krb5_enctype *,
krb5_preauthtype *,
krb5_error_code ( * )(krb5_context,
- const krb5_enctype,
+ krb5_enctype,
krb5_data *,
krb5_const_pointer,
krb5_keyblock **),
krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_password
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_address * const *,
krb5_enctype *,
krb5_preauthtype *,
krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_skey
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_address * const *,
krb5_enctype *,
krb5_preauthtype *,
krb5_error_code KRB5_CALLCONV krb5_get_in_tkt_with_keytab
(krb5_context,
- const krb5_flags,
+ krb5_flags,
krb5_address * const *,
krb5_enctype *,
krb5_preauthtype *,
- const krb5_keytab,
+ krb5_keytab,
krb5_ccache,
krb5_creds *,
krb5_kdc_rep ** );
krb5_error_code KRB5_CALLCONV krb5_aname_to_localname
(krb5_context,
krb5_const_principal,
- const int,
+ int,
char * );
#if KRB5_PRIVATE
krb5_error_code KRB5_CALLCONV krb5_get_host_realm
+2002-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * old_api_glue.c (krb5_encrypt, krb5_decrypt,
+ krb5_calculate_checksum, krb5_verify_checksum): Clean up use of
+ "const" in API.
+
2002-12-06 Ezra Peisach <epeisach@bu.edu>
* Makefile.in (clean): Clean up more test executables and object
krb5_error_code KRB5_CALLCONV
krb5_encrypt(context, inptr, outptr, size, eblock, ivec)
krb5_context context;
- const krb5_pointer inptr;
+ krb5_const_pointer inptr;
krb5_pointer outptr;
- const size_t size;
+ size_t size;
krb5_encrypt_block * eblock;
krb5_pointer ivec;
{
krb5_error_code KRB5_CALLCONV
krb5_decrypt(context, inptr, outptr, size, eblock, ivec)
krb5_context context;
- const krb5_pointer inptr;
+ krb5_const_pointer inptr;
krb5_pointer outptr;
- const size_t size;
+ size_t size;
krb5_encrypt_block * eblock;
krb5_pointer ivec;
{
krb5_calculate_checksum(context, ctype, in, in_length,
seed, seed_length, outcksum)
krb5_context context;
- const krb5_cksumtype ctype;
- const krb5_pointer in;
- const size_t in_length;
- const krb5_pointer seed;
- const size_t seed_length;
+ krb5_cksumtype ctype;
+ krb5_const_pointer in;
+ size_t in_length;
+ krb5_const_pointer seed;
+ size_t seed_length;
krb5_checksum * outcksum;
{
krb5_data input;
krb5_context context;
krb5_cksumtype ctype;
const krb5_checksum * cksum;
- const krb5_pointer in;
- const size_t in_length;
- const krb5_pointer seed;
- const size_t seed_length;
+ krb5_const_pointer in;
+ size_t in_length;
+ krb5_const_pointer seed;
+ size_t seed_length;
{
krb5_data input;
krb5_keyblock key;
+2002-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * conv_princ.c (krb5_524_conv_principal): Clean up use of "const"
+ in API.
+
2002-11-14 Ezra Peisach <epeisach@bu.edu>
* get_in_tkt.c (krb5_get_in_tkt): Do not pass NULL when an
#define KRB5_INVALID_PRINCIPAL KRB5_LNAME_BADFORMAT
krb5_error_code KRB5_CALLCONV
-krb5_524_conv_principal(krb5_context context, const krb5_principal princ,
+krb5_524_conv_principal(krb5_context context, krb5_const_principal princ,
char *name, char *inst, char *realm)
{
const struct krb_convert *p;
- krb5_data *compo;
+ const krb5_data *compo;
char *c, *tmp_realm, *tmp_prealm;
unsigned int tmp_realm_len;
int retval;