We don't really need to include krb.h here, since we only use the
principal size macros, so define these here. Theoretically someone could have a krb4 system where these values are != 40, but this is unlikely, and krb5_524_conv_principal also assume they are 40. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9399 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "krb5_locl.h"
|
#include "krb5_locl.h"
|
||||||
#include <krb.h>
|
|
||||||
|
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
@@ -227,6 +226,9 @@ krb4_kt_add_entry (krb5_context context,
|
|||||||
struct krb4_kt_data *d = id->data;
|
struct krb4_kt_data *d = id->data;
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
int fd;
|
int fd;
|
||||||
|
#define ANAME_SZ 40
|
||||||
|
#define INST_SZ 40
|
||||||
|
#define REALM_SZ 40
|
||||||
char service[ANAME_SZ];
|
char service[ANAME_SZ];
|
||||||
char instance[INST_SZ];
|
char instance[INST_SZ];
|
||||||
char realm[REALM_SZ];
|
char realm[REALM_SZ];
|
||||||
@@ -258,7 +260,7 @@ krb4_kt_add_entry (krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
krb5_kt_ops krb4_fkt_ops = {
|
const krb5_kt_ops krb4_fkt_ops = {
|
||||||
"krb4",
|
"krb4",
|
||||||
krb4_kt_resolve,
|
krb4_kt_resolve,
|
||||||
krb4_kt_get_name,
|
krb4_kt_get_name,
|
||||||
|
Reference in New Issue
Block a user