diff options
author | Richard Basch <probe@mit.edu> | 1996-02-09 02:19:14 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1996-02-09 02:19:14 +0000 |
commit | 8681961a7e2f69a98b0e180f96ca135e48ce7e51 (patch) | |
tree | 868bb76e704d14376777d982df43c1ee7112c273 /src/lib/krb5/ccache/stdio/scc_gprin.c | |
parent | 47907a9360bf76f1b1a9d2f4c927733e18aa1eb0 (diff) | |
download | krb5-8681961a7e2f69a98b0e180f96ca135e48ce7e51.tar.gz krb5-8681961a7e2f69a98b0e180f96ca135e48ce7e51.tar.xz krb5-8681961a7e2f69a98b0e180f96ca135e48ce7e51.zip |
* scc.h scc_gprin.c scc_maybe.c scc_skip.c scc_sseq.c
Store and retrieve the os_context time offset from the
credentials cache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7465 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/stdio/scc_gprin.c')
-rw-r--r-- | src/lib/krb5/ccache/stdio/scc_gprin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/stdio/scc_gprin.c b/src/lib/krb5/ccache/stdio/scc_gprin.c index 3f6c90d5e..5fbc4822d 100644 --- a/src/lib/krb5/ccache/stdio/scc_gprin.c +++ b/src/lib/krb5/ccache/stdio/scc_gprin.c @@ -49,11 +49,13 @@ krb5_scc_get_principal(context, id, princ) krb5_error_code kret; MAYBE_OPEN (context, id, SCC_OPEN_RDONLY); - /* skip over vno at beginning of file */ - fseek(((krb5_scc_data *) id->data)->file, sizeof(krb5_int16), 0); + + kret = krb5_scc_skip_header(context, id); + if (kret) goto done; kret = krb5_scc_read_principal(context, id, princ); +done: MAYBE_CLOSE (context, id, kret); return kret; } |