add_cred.c revision 178825
1176491Smarcel/* 2176491Smarcel * Copyright (c) 2006 Kungliga Tekniska H�gskolan 3176491Smarcel * (Royal Institute of Technology, Stockholm, Sweden). 4176491Smarcel * All rights reserved. 5176491Smarcel * 6176491Smarcel * Redistribution and use in source and binary forms, with or without 7176491Smarcel * modification, are permitted provided that the following conditions 8176491Smarcel * are met: 9176491Smarcel * 10176491Smarcel * 1. Redistributions of source code must retain the above copyright 11176491Smarcel * notice, this list of conditions and the following disclaimer. 12176491Smarcel * 13176491Smarcel * 2. Redistributions in binary form must reproduce the above copyright 14176491Smarcel * notice, this list of conditions and the following disclaimer in the 15176491Smarcel * documentation and/or other materials provided with the distribution. 16176491Smarcel * 17176491Smarcel * 3. Neither the name of the Institute nor the names of its contributors 18176491Smarcel * may be used to endorse or promote products derived from this software 19176491Smarcel * without specific prior written permission. 20176491Smarcel * 21176491Smarcel * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22176491Smarcel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23176491Smarcel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24176491Smarcel * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25176491Smarcel * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26176491Smarcel * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27176491Smarcel * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28176491Smarcel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29176491Smarcel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30176491Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31176491Smarcel * SUCH DAMAGE. 32176491Smarcel */ 33176491Smarcel 34176491Smarcel#include "ntlm/ntlm.h" 35176491Smarcel 36176491SmarcelRCSID("$Id: add_cred.c 19334 2006-12-14 12:17:34Z lha $"); 37176491Smarcel 38176491SmarcelOM_uint32 _gss_ntlm_add_cred ( 39176491Smarcel OM_uint32 *minor_status, 40176491Smarcel const gss_cred_id_t input_cred_handle, 41176491Smarcel const gss_name_t desired_name, 42176491Smarcel const gss_OID desired_mech, 43176491Smarcel gss_cred_usage_t cred_usage, 44176491Smarcel OM_uint32 initiator_time_req, 45176491Smarcel OM_uint32 acceptor_time_req, 46176491Smarcel gss_cred_id_t *output_cred_handle, 47176491Smarcel gss_OID_set *actual_mechs, 48176491Smarcel OM_uint32 *initiator_time_rec, 49176491Smarcel OM_uint32 *acceptor_time_rec) 50176491Smarcel{ 51176491Smarcel if (minor_status) 52176491Smarcel *minor_status = 0; 53176491Smarcel if (output_cred_handle) 54176491Smarcel *output_cred_handle = GSS_C_NO_CREDENTIAL; 55176491Smarcel if (actual_mechs) 56176491Smarcel *actual_mechs = GSS_C_NO_OID_SET; 57176491Smarcel if (initiator_time_rec) 58176491Smarcel *initiator_time_rec = 0; 59176491Smarcel if (acceptor_time_rec) 60176491Smarcel *acceptor_time_rec = 0; 61176491Smarcel return GSS_S_COMPLETE; 62176491Smarcel} 63176491Smarcel