1178828Sdfr/*- 2178828Sdfr * Copyright (c) 2008 Doug Rabson 3178828Sdfr * All rights reserved. 4178828Sdfr * 5178828Sdfr * Redistribution and use in source and binary forms, with or without 6178828Sdfr * modification, are permitted provided that the following conditions 7178828Sdfr * are met: 8178828Sdfr * 1. Redistributions of source code must retain the above copyright 9178828Sdfr * notice, this list of conditions and the following disclaimer. 10178828Sdfr * 2. Redistributions in binary form must reproduce the above copyright 11178828Sdfr * notice, this list of conditions and the following disclaimer in the 12178828Sdfr * documentation and/or other materials provided with the distribution. 13178828Sdfr * 14178828Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15178828Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16178828Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17178828Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18178828Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19178828Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20178828Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21178828Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22178828Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23178828Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24178828Sdfr * SUCH DAMAGE. 25178828Sdfr * 26178828Sdfr * $FreeBSD$ 27178828Sdfr */ 28178828Sdfr 29178828Sdfr#include <gssapi/gssapi.h> 30178828Sdfr 31178828Sdfrstatic gss_OID_desc gss_c_peer_has_updated_spnego_oid_desc = 32178828Sdfr{9, (void *)"\x2b\x06\x01\x04\x01\xa9\x4a\x13\x05"}; 33178828Sdfr 34178828Sdfrgss_OID GSS_C_PEER_HAS_UPDATED_SPNEGO = &gss_c_peer_has_updated_spnego_oid_desc; 35178828Sdfr 36178828Sdfrstatic gss_OID_desc gss_krb5_mechanism_oid_desc = 37178828Sdfr{9, (void *) "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"}; 38178828Sdfr 39178828Sdfrgss_OID GSS_KRB5_MECHANISM = &gss_krb5_mechanism_oid_desc; 40178828Sdfr 41178828Sdfrconst char * 42178828Sdfr_gss_name_prefix(void) 43178828Sdfr{ 44178828Sdfr return "_gss_spnego"; 45178828Sdfr} 46