]> andersk Git - gssapi-openssh.git/commitdiff
pass in mechanism OID to ssh_gssapi_send_error() so mechglue can know
authorjbasney <jbasney>
Wed, 25 Sep 2002 21:57:16 +0000 (21:57 +0000)
committerjbasney <jbasney>
Wed, 25 Sep 2002 21:57:16 +0000 (21:57 +0000)
which GSSAPI library to use to call gss_display_status()

openssh/auth2-gss.c
openssh/kexgss.c

index 597b61404213f3a1b9aa087c32423a85b999b5cd..ddaf953eba9540ad5f8adf55651119e14478e0cd 100644 (file)
@@ -144,7 +144,7 @@ input_gssapi_token(int type, u_int32_t plen, void *ctxt)
         
         if (GSS_ERROR(maj_status)) {
                 /* Failure <sniff> */
-               ssh_gssapi_send_error(maj_status,min_status);
+               ssh_gssapi_send_error(gssctxt->oid,maj_status,min_status);
                 authctxt->postponed = 0;
                dispatch_set(SSH_MSG_AUTH_GSSAPI_TOKEN, NULL);
                 dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL);
index da96461276202bc7fb2a5cb395d1ddaa1e97f509..7d18b1a28bbf4b5c2987edb461ad84ab9b901154 100644 (file)
@@ -371,18 +371,18 @@ kexgss_server(Kex *kex)
        } while (maj_status & GSS_S_CONTINUE_NEEDED);
 
        if (GSS_ERROR(maj_status)) {
-               ssh_gssapi_send_error(maj_status,min_status);
+               ssh_gssapi_send_error(ctxt->oid,maj_status,min_status);
                packet_disconnect("gssapi key exchange handshake failed");
        }
 
        debug("gss_complete");
        if (!(ret_flags & GSS_C_MUTUAL_FLAG)) {
-               ssh_gssapi_send_error(maj_status,min_status);
+               ssh_gssapi_send_error(ctxt->oid,maj_status,min_status);
                packet_disconnect("gssapi mutual authentication failed");
        }
                
        if (!(ret_flags & GSS_C_INTEG_FLAG)) {
-               ssh_gssapi_send_error(maj_status,min_status);
+               ssh_gssapi_send_error(ctxt->oid,maj_status,min_status);
                packet_disconnect("gssapi channel integrity not established");
        }               
        
@@ -423,7 +423,7 @@ kexgss_server(Kex *kex)
        gssbuf.length = 20; /* Hashlen appears to always be 20 */
        
        if (GSS_ERROR(PRIVSEP(ssh_gssapi_sign(ctxt,&gssbuf,&msg_tok)))) {
-               ssh_gssapi_send_error(maj_status,min_status);
+               ssh_gssapi_send_error(ctxt->oid,maj_status,min_status);
                packet_disconnect("Couldn't get MIC");
        }
        
This page took 0.036682 seconds and 5 git commands to generate.