diff options
author | Damien Miller <djm@mindrot.org> | 2003-11-21 23:48:55 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-11-21 23:48:55 +1100 |
commit | a8e06cef35c205e1aa562513c6d034a10c8c9a6d (patch) | |
tree | cf8bdb4466f553088c020b9179cabd6eaf196075 /gss-serv-krb5.c | |
parent | 8c5e91c03fdd2693f0635f8b2a9904bffc94ce16 (diff) |
- djm@cvs.openbsd.org 2003/11/21 11:57:03
[everything]
unexpand and delete whitespace at EOL; ok markus@
(done locally and RCS IDs synced)
Diffstat (limited to 'gss-serv-krb5.c')
-rw-r--r-- | gss-serv-krb5.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gss-serv-krb5.c b/gss-serv-krb5.c index f48e09911..e358bcbdc 100644 --- a/gss-serv-krb5.c +++ b/gss-serv-krb5.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gss-serv-krb5.c,v 1.1 2003/08/22 10:56:09 markus Exp $ */ | 1 | /* $OpenBSD: gss-serv-krb5.c,v 1.2 2003/11/21 11:57:03 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. | 4 | * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. |
@@ -48,7 +48,7 @@ static krb5_context krb_context = NULL; | |||
48 | 48 | ||
49 | /* Initialise the krb5 library, for the stuff that GSSAPI won't do */ | 49 | /* Initialise the krb5 library, for the stuff that GSSAPI won't do */ |
50 | 50 | ||
51 | static int | 51 | static int |
52 | ssh_gssapi_krb5_init() | 52 | ssh_gssapi_krb5_init() |
53 | { | 53 | { |
54 | krb5_error_code problem; | 54 | krb5_error_code problem; |
@@ -127,10 +127,10 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client) | |||
127 | { | 127 | { |
128 | int tmpfd; | 128 | int tmpfd; |
129 | char ccname[40]; | 129 | char ccname[40]; |
130 | 130 | ||
131 | snprintf(ccname, sizeof(ccname), | 131 | snprintf(ccname, sizeof(ccname), |
132 | "FILE:/tmp/krb5cc_%d_XXXXXX", geteuid()); | 132 | "FILE:/tmp/krb5cc_%d_XXXXXX", geteuid()); |
133 | 133 | ||
134 | if ((tmpfd = mkstemp(ccname + strlen("FILE:"))) == -1) { | 134 | if ((tmpfd = mkstemp(ccname + strlen("FILE:"))) == -1) { |
135 | logit("mkstemp(): %.100s", strerror(errno)); | 135 | logit("mkstemp(): %.100s", strerror(errno)); |
136 | problem = errno; | 136 | problem = errno; |
@@ -151,7 +151,7 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client) | |||
151 | } | 151 | } |
152 | #endif /* #ifdef HEIMDAL */ | 152 | #endif /* #ifdef HEIMDAL */ |
153 | 153 | ||
154 | if ((problem = krb5_parse_name(krb_context, | 154 | if ((problem = krb5_parse_name(krb_context, |
155 | client->exportedname.value, &princ))) { | 155 | client->exportedname.value, &princ))) { |
156 | logit("krb5_parse_name(): %.100s", | 156 | logit("krb5_parse_name(): %.100s", |
157 | krb5_get_err_text(krb_context, problem)); | 157 | krb5_get_err_text(krb_context, problem)); |
@@ -169,7 +169,7 @@ ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client) | |||
169 | 169 | ||
170 | krb5_free_principal(krb_context, princ); | 170 | krb5_free_principal(krb_context, princ); |
171 | 171 | ||
172 | if ((maj_status = gss_krb5_copy_ccache(&min_status, | 172 | if ((maj_status = gss_krb5_copy_ccache(&min_status, |
173 | client->creds, ccache))) { | 173 | client->creds, ccache))) { |
174 | logit("gss_krb5_copy_ccache() failed"); | 174 | logit("gss_krb5_copy_ccache() failed"); |
175 | krb5_cc_destroy(krb_context, ccache); | 175 | krb5_cc_destroy(krb_context, ccache); |