constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15489 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -39,7 +39,7 @@ kadm5_ret_t
|
|||||||
kadm5_c_create_principal(void *server_handle,
|
kadm5_c_create_principal(void *server_handle,
|
||||||
kadm5_principal_ent_t princ,
|
kadm5_principal_ent_t princ,
|
||||||
u_int32_t mask,
|
u_int32_t mask,
|
||||||
char *password)
|
const char *password)
|
||||||
{
|
{
|
||||||
kadm5_client_context *context = server_handle;
|
kadm5_client_context *context = server_handle;
|
||||||
kadm5_ret_t ret;
|
kadm5_ret_t ret;
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
static char *op_names[] = {
|
static const char *op_names[] = {
|
||||||
"get",
|
"get",
|
||||||
"delete",
|
"delete",
|
||||||
"create",
|
"create",
|
||||||
@@ -214,7 +214,7 @@ print_entry(kadm5_server_context *server_context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *realm;
|
static char *realm;
|
||||||
static char *config_file;
|
static const char *config_file;
|
||||||
static int version_flag;
|
static int version_flag;
|
||||||
static int help_flag;
|
static int help_flag;
|
||||||
|
|
||||||
|
@@ -59,15 +59,15 @@ typedef int
|
|||||||
size_t length);
|
size_t length);
|
||||||
|
|
||||||
struct kadm5_pw_policy_check_func {
|
struct kadm5_pw_policy_check_func {
|
||||||
char *name;
|
const char *name;
|
||||||
kadm5_passwd_quality_check_func func;
|
kadm5_passwd_quality_check_func func;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct kadm5_pw_policy_verifier {
|
struct kadm5_pw_policy_verifier {
|
||||||
char *name;
|
const char *name;
|
||||||
int version;
|
int version;
|
||||||
char *vendor;
|
const char *vendor;
|
||||||
struct kadm5_pw_policy_check_func *funcs;
|
const struct kadm5_pw_policy_check_func *funcs;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* KADM5_PWCHECK_H */
|
#endif /* KADM5_PWCHECK_H */
|
||||||
|
@@ -89,7 +89,7 @@ char_class_passwd_quality (krb5_context context,
|
|||||||
char *message,
|
char *message,
|
||||||
size_t length)
|
size_t length)
|
||||||
{
|
{
|
||||||
char *classes[] = {
|
const char *classes[] = {
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||||
"abcdefghijklmnopqrstuvwxyz",
|
"abcdefghijklmnopqrstuvwxyz",
|
||||||
"1234567890",
|
"1234567890",
|
||||||
@@ -409,10 +409,10 @@ kadm5_add_passwd_quality_verifier(krb5_context context,
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static struct kadm5_pw_policy_check_func *
|
static const struct kadm5_pw_policy_check_func *
|
||||||
find_func(krb5_context context, const char *name)
|
find_func(krb5_context context, const char *name)
|
||||||
{
|
{
|
||||||
struct kadm5_pw_policy_check_func *f;
|
const struct kadm5_pw_policy_check_func *f;
|
||||||
char *module = NULL;
|
char *module = NULL;
|
||||||
const char *p, *func;
|
const char *p, *func;
|
||||||
int i;
|
int i;
|
||||||
@@ -456,7 +456,7 @@ kadm5_check_password_quality (krb5_context context,
|
|||||||
krb5_principal principal,
|
krb5_principal principal,
|
||||||
krb5_data *pwd_data)
|
krb5_data *pwd_data)
|
||||||
{
|
{
|
||||||
struct kadm5_pw_policy_check_func *proc;
|
const struct kadm5_pw_policy_check_func *proc;
|
||||||
static char error_msg[1024];
|
static char error_msg[1024];
|
||||||
const char *msg;
|
const char *msg;
|
||||||
char **v, **vp;
|
char **v, **vp;
|
||||||
|
Reference in New Issue
Block a user