+2002-10-28 Ken Raeburn <raeburn@mit.edu>
+
+ * get_in_tkt.c (conf_yes, conf_no): Now const. References
+ updated.
+ * preauth.c (preauth_systems): Now const. References updated.
+ * preauth2.c (pa_types): Now const.
+ (krb5_do_preauth): Local array paorder now const.
+
2002-10-28 Sam Hartman <hartmans@mit.edu>
* gic_keytab.c (krb5_get_init_creds_keytab): Don't allow failure
is yet. */
/* XXX Duplicating this is annoying; try to work on a better way.*/
-static const char *conf_yes[] = {
+static const char *const conf_yes[] = {
"y", "yes", "true", "t", "1", "on",
0,
};
-static const char *conf_no[] = {
+static const char *const conf_no[] = {
"n", "no", "false", "nil", "0", "off",
0,
};
int
_krb5_conf_boolean(const char *s)
{
- const char **p;
+ const char *const *p;
for(p=conf_yes; *p; p++) {
if (!strcasecmp(*p,s))
krb5_kdc_req *,
krb5_pa_data **);
-static krb5_preauth_ops preauth_systems[] = {
+static const krb5_preauth_ops preauth_systems[] = {
{
KV5M_PREAUTH_OPS,
KRB5_PADATA_ENC_TIMESTAMP,
};
static krb5_error_code find_pa_system
- (krb5_preauthtype type, krb5_preauth_ops **Preauth_proc);
+ (krb5_preauthtype type, const krb5_preauth_ops **Preauth_proc);
/* some typedef's for the function args to make things look a bit cleaner */
krb5_pa_data ** pa;
krb5_pa_data ** send_pa_list;
krb5_pa_data ** send_pa;
- krb5_preauth_ops *ops;
+ const krb5_preauth_ops *ops;
krb5_keyblock * def_enc_key = 0;
krb5_enctype enctype;
krb5_data salt;
krb5_process_padata(krb5_context context, krb5_kdc_req *request, krb5_kdc_rep *as_reply, git_key_proc key_proc, krb5_const_pointer keyseed, git_decrypt_proc decrypt_proc, krb5_keyblock **decrypt_key, krb5_creds *creds, krb5_int32 *do_more)
{
krb5_error_code retval = 0;
- krb5_preauth_ops * ops;
+ const krb5_preauth_ops * ops;
krb5_pa_data ** pa;
krb5_int32 done = 0;
}
static krb5_error_code
-find_pa_system(krb5_preauthtype type, krb5_preauth_ops **preauth)
+find_pa_system(krb5_preauthtype type, const krb5_preauth_ops **preauth)
{
- krb5_preauth_ops *ap = preauth_systems;
+ const krb5_preauth_ops *ap = preauth_systems;
while ((ap->type != -1) && (ap->type != type))
ap++;
return(0);
}
-static pa_types_t pa_types[] = {
+static const pa_types_t pa_types[] = {
{
KRB5_PADATA_PW_SALT,
pa_salt,
krb5_data scratch;
krb5_etype_info etype_info = NULL;
krb5_error_code ret;
- static int paorder[] = { PA_INFO, PA_REAL };
+ static const int paorder[] = { PA_INFO, PA_REAL };
int realdone;
if (in_padata == NULL) {