diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-06-12 15:44:36 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-06-12 15:44:36 +0200 |
commit | b1e128f75a46a81023482ed00e8e7989f5a95215 (patch) | |
tree | 31dc76662f48203e1afb804025d42ca7d9f1c8ef /gss-genr.c | |
parent | - djm@cvs.openbsd.org 2007/06/12 11:45:27 (diff) | |
download | openssh-b1e128f75a46a81023482ed00e8e7989f5a95215.tar.xz openssh-b1e128f75a46a81023482ed00e8e7989f5a95215.zip |
- dtucker@cvs.openbsd.org 2007/06/12 11:56:15
[gss-genr.c]
Pass GSS OID to gss_display_status to provide better information in
error messages. Patch from Simon Wilkinson via bz 1220. ok djm@
Diffstat (limited to 'gss-genr.c')
-rw-r--r-- | gss-genr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gss-genr.c b/gss-genr.c index d2b718e7a..e9190575d 100644 --- a/gss-genr.c +++ b/gss-genr.c @@ -1,7 +1,7 @@ -/* $OpenBSD: gss-genr.c,v 1.18 2007/06/12 08:20:00 djm Exp $ */ +/* $OpenBSD: gss-genr.c,v 1.19 2007/06/12 11:56:15 dtucker Exp $ */ /* - * Copyright (c) 2001-2006 Simon Wilkinson. All rights reserved. + * Copyright (c) 2001-2007 Simon Wilkinson. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -107,7 +107,7 @@ ssh_gssapi_last_error(Gssctxt *ctxt, OM_uint32 *major_status, /* The GSSAPI error */ do { gss_display_status(&lmin, ctxt->major, - GSS_C_GSS_CODE, GSS_C_NULL_OID, &ctx, &msg); + GSS_C_GSS_CODE, ctxt->oid, &ctx, &msg); buffer_append(&b, msg.value, msg.length); buffer_put_char(&b, '\n'); @@ -118,7 +118,7 @@ ssh_gssapi_last_error(Gssctxt *ctxt, OM_uint32 *major_status, /* The mechanism specific error */ do { gss_display_status(&lmin, ctxt->minor, - GSS_C_MECH_CODE, GSS_C_NULL_OID, &ctx, &msg); + GSS_C_MECH_CODE, ctxt->oid, &ctx, &msg); buffer_append(&b, msg.value, msg.length); buffer_put_char(&b, '\n'); |