2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright 1991 by the Massachusetts Institute of Technology. 2N/A * All Rights Reserved. 2N/A * Export of this software from the United States of America may 2N/A * require a specific license from the United States Government. 2N/A * It is the responsibility of any person or organization contemplating 2N/A * export to obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of M.I.T. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. Furthermore if you modify this software you must label 2N/A * your software as modified software and not distribute it in such a 2N/A * fashion that it might be confused with the original M.I.T. software. 2N/A * M.I.T. makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * Zero out problem variable. If problem is set at the end of 2N/A * the intial version negotiation section, it means that we 2N/A * need to send an error code back to the client application 2N/A * First read the sendauth version string and check it. 2N/A * Do the same thing for the application version string. 2N/A * Now we actually write the response. If the response is non-zero, 2N/A * exit with a return value of problem 2N/A return(
problem);
/* We'll return the top-level problem */ 2N/A /* We are clear of errors here */ 2N/A * Now, let's read the AP_REQ message and decode it 2N/A * Setup the replay cache. 2N/A * If there was a problem, send back a krb5_error message, 2N/A * preceeded by the length of the krb5_error message. If 2N/A * everything's ok, send back 0 for the length. 2N/A /* If this fails - ie. ENOMEM we are hosed 2N/A we cannot even send the error if we wanted to... */ 2N/A /* We sent back an error, we need cleanup then return */ 2N/A /* Here lies the mutual authentication stuff... */ 2N/A /* Solaris Kerberos */