1181344Sdfr/*- 2181344Sdfr * Copyright (c) 2008 Doug Rabson 3181344Sdfr * All rights reserved. 4181344Sdfr * 5181344Sdfr * Redistribution and use in source and binary forms, with or without 6181344Sdfr * modification, are permitted provided that the following conditions 7181344Sdfr * are met: 8181344Sdfr * 1. Redistributions of source code must retain the above copyright 9181344Sdfr * notice, this list of conditions and the following disclaimer. 10181344Sdfr * 2. Redistributions in binary form must reproduce the above copyright 11181344Sdfr * notice, this list of conditions and the following disclaimer in the 12181344Sdfr * documentation and/or other materials provided with the distribution. 13181344Sdfr * 14181344Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15181344Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16181344Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17181344Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18181344Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19181344Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20181344Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21181344Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22181344Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23181344Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24181344Sdfr * SUCH DAMAGE. 25181344Sdfr * 26181344Sdfr * $FreeBSD$ 27181344Sdfr */ 28181344Sdfr 29181344Sdfr#include <rpc/rpc.h> 30181344Sdfr#include <rpc/rpcsec_gss.h> 31181344Sdfr 32181344Sdfr#include "rpcsec_gss_int.h" 33181344Sdfr 34181344Sdfrstatic rpc_gss_error_t _rpc_gss_error; 35181344Sdfr 36181344Sdfrvoid 37181344Sdfr_rpc_gss_set_error(int rpc_gss_error, int system_error) 38181344Sdfr{ 39181344Sdfr 40181344Sdfr _rpc_gss_error.rpc_gss_error = rpc_gss_error; 41181344Sdfr _rpc_gss_error.system_error = system_error; 42181344Sdfr} 43181344Sdfr 44181344Sdfrvoid 45181344Sdfrrpc_gss_get_error(rpc_gss_error_t *error) 46181344Sdfr{ 47181344Sdfr 48181344Sdfr *error = _rpc_gss_error; 49181344Sdfr} 50