gss_verify.c revision 303975
177298Sobrien/*- 277298Sobrien * Copyright (c) 2005 Doug Rabson 377298Sobrien * All rights reserved. 477298Sobrien * 577298Sobrien * Redistribution and use in source and binary forms, with or without 677298Sobrien * modification, are permitted provided that the following conditions 777298Sobrien * are met: 877298Sobrien * 1. Redistributions of source code must retain the above copyright 977298Sobrien * notice, this list of conditions and the following disclaimer. 1077298Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1177298Sobrien * notice, this list of conditions and the following disclaimer in the 1277298Sobrien * documentation and/or other materials provided with the distribution. 1377298Sobrien * 1477298Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1577298Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1677298Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1777298Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1877298Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1977298Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2077298Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2177298Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2277298Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2377298Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2477298Sobrien * SUCH DAMAGE. 2577298Sobrien * 2677298Sobrien * $FreeBSD: src/lib/libgssapi/gss_verify.c,v 1.1 2005/12/29 14:40:20 dfr Exp $ 2777298Sobrien */ 2877298Sobrien 2977298Sobrien#include "mech_locl.h" 3077298Sobrien 3177298SobrienGSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL 3277298Sobriengss_verify(OM_uint32 *minor_status, 3377298Sobrien gss_ctx_id_t context_handle, 3477298Sobrien gss_buffer_t message_buffer, 3577298Sobrien gss_buffer_t token_buffer, 3677298Sobrien int *qop_state) 3777298Sobrien{ 3877298Sobrien 3977298Sobrien return (gss_verify_mic(minor_status, 4077298Sobrien context_handle, message_buffer, token_buffer, 4177298Sobrien (gss_qop_t *)qop_state)); 4277298Sobrien} 4377298Sobrien