Deleted Added
full compact
gss-serv-krb5.c (126274) gss-serv-krb5.c (128456)
1/* $OpenBSD: gss-serv-krb5.c,v 1.2 2003/11/21 11:57:03 djm Exp $ */
2
3/*
4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 51 unchanged lines hidden (view full) ---

60 if (krb_context != NULL)
61 return 1;
62
63 problem = krb5_init_context(&krb_context);
64 if (problem) {
65 logit("Cannot initialize krb5 context");
66 return 0;
67 }
1/* $OpenBSD: gss-serv-krb5.c,v 1.2 2003/11/21 11:57:03 djm Exp $ */
2
3/*
4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 51 unchanged lines hidden (view full) ---

60 if (krb_context != NULL)
61 return 1;
62
63 problem = krb5_init_context(&krb_context);
64 if (problem) {
65 logit("Cannot initialize krb5 context");
66 return 0;
67 }
68#ifdef KRB5_INIT_ETS
68 krb5_init_ets(krb_context);
69 krb5_init_ets(krb_context);
70#endif
69
70 return 1;
71}
72
73/* Check if this user is OK to login. This only works with krb5 - other
74 * GSSAPI mechanisms will need their own.
75 * Returns true if the user is OK to log in, otherwise returns 0
76 */

--- 136 unchanged lines hidden ---
71
72 return 1;
73}
74
75/* Check if this user is OK to login. This only works with krb5 - other
76 * GSSAPI mechanisms will need their own.
77 * Returns true if the user is OK to log in, otherwise returns 0
78 */

--- 136 unchanged lines hidden ---