1*7f2fe78bSCy Schubert /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2*7f2fe78bSCy Schubert /* plus/tls/k5tls/none.c - Stub TLS module implementation */
3*7f2fe78bSCy Schubert /*
4*7f2fe78bSCy Schubert * Copyright (C) 2014 by the Massachusetts Institute of Technology.
5*7f2fe78bSCy Schubert * All rights reserved.
6*7f2fe78bSCy Schubert *
7*7f2fe78bSCy Schubert * Redistribution and use in source and binary forms, with or without
8*7f2fe78bSCy Schubert * modification, are permitted provided that the following conditions
9*7f2fe78bSCy Schubert * are met:
10*7f2fe78bSCy Schubert *
11*7f2fe78bSCy Schubert * * Redistributions of source code must retain the above copyright
12*7f2fe78bSCy Schubert * notice, this list of conditions and the following disclaimer.
13*7f2fe78bSCy Schubert *
14*7f2fe78bSCy Schubert * * Redistributions in binary form must reproduce the above copyright
15*7f2fe78bSCy Schubert * notice, this list of conditions and the following disclaimer in
16*7f2fe78bSCy Schubert * the documentation and/or other materials provided with the
17*7f2fe78bSCy Schubert * distribution.
18*7f2fe78bSCy Schubert *
19*7f2fe78bSCy Schubert * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20*7f2fe78bSCy Schubert * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21*7f2fe78bSCy Schubert * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22*7f2fe78bSCy Schubert * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23*7f2fe78bSCy Schubert * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24*7f2fe78bSCy Schubert * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25*7f2fe78bSCy Schubert * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26*7f2fe78bSCy Schubert * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27*7f2fe78bSCy Schubert * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28*7f2fe78bSCy Schubert * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29*7f2fe78bSCy Schubert * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30*7f2fe78bSCy Schubert * OF THE POSSIBILITY OF SUCH DAMAGE.
31*7f2fe78bSCy Schubert */
32*7f2fe78bSCy Schubert
33*7f2fe78bSCy Schubert /* This dummy module is used if no TLS implemented is selected. */
34*7f2fe78bSCy Schubert
35*7f2fe78bSCy Schubert #include "k5-int.h"
36*7f2fe78bSCy Schubert #include "k5-utf8.h"
37*7f2fe78bSCy Schubert #include "k5-tls.h"
38*7f2fe78bSCy Schubert
39*7f2fe78bSCy Schubert #ifdef TLS_IMPL_NONE
40*7f2fe78bSCy Schubert
41*7f2fe78bSCy Schubert krb5_error_code
42*7f2fe78bSCy Schubert tls_k5tls_initvt(krb5_context context, int maj_ver, int min_ver,
43*7f2fe78bSCy Schubert krb5_plugin_vtable vtable);
44*7f2fe78bSCy Schubert
45*7f2fe78bSCy Schubert krb5_error_code
tls_k5tls_initvt(krb5_context context,int maj_ver,int min_ver,krb5_plugin_vtable vtable)46*7f2fe78bSCy Schubert tls_k5tls_initvt(krb5_context context, int maj_ver, int min_ver,
47*7f2fe78bSCy Schubert krb5_plugin_vtable vtable)
48*7f2fe78bSCy Schubert {
49*7f2fe78bSCy Schubert /* Leave all vtable functions nulled. */
50*7f2fe78bSCy Schubert return 0;
51*7f2fe78bSCy Schubert }
52*7f2fe78bSCy Schubert
53*7f2fe78bSCy Schubert #endif /* TLS_IMPL_NONE */
54