gss_verify.c revision 153838
1192886Sedwin/*- 2192886Sedwin * Copyright (c) 2005 Doug Rabson 3173319Sedwin * All rights reserved. 4173319Sedwin * 5173319Sedwin * Redistribution and use in source and binary forms, with or without 6173319Sedwin * modification, are permitted provided that the following conditions 7173319Sedwin * are met: 8173319Sedwin * 1. Redistributions of source code must retain the above copyright 9173319Sedwin * notice, this list of conditions and the following disclaimer. 10173319Sedwin * 2. Redistributions in binary form must reproduce the above copyright 11173319Sedwin * notice, this list of conditions and the following disclaimer in the 12173319Sedwin * documentation and/or other materials provided with the distribution. 13173319Sedwin * 14173319Sedwin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15173319Sedwin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16173319Sedwin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17173319Sedwin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18173319Sedwin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19173319Sedwin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20173319Sedwin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21173319Sedwin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22173319Sedwin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23173319Sedwin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24173319Sedwin * SUCH DAMAGE. 25173319Sedwin * 26173319Sedwin * $FreeBSD: head/lib/libgssapi/gss_verify.c 153838 2005-12-29 14:40:22Z dfr $ 27173319Sedwin */ 28 29#include <gssapi/gssapi.h> 30 31OM_uint32 32gss_verify(OM_uint32 *minor_status, 33 gss_ctx_id_t context_handle, 34 gss_buffer_t message_buffer, 35 gss_buffer_t token_buffer, 36 int *qop_state) 37{ 38 39 return (gss_verify_mic(minor_status, 40 context_handle, message_buffer, token_buffer, qop_state)); 41} 42