1aa864558SBrian Feldman /*-
2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause
35e53a4f9SPedro F. Giffuni *
4aa864558SBrian Feldman * Copyright (c) 2000 Brian Fundakowski Feldman
5aa864558SBrian Feldman * All rights reserved.
6aa864558SBrian Feldman *
7aa864558SBrian Feldman * Redistribution and use in source and binary forms, with or without
8aa864558SBrian Feldman * modification, are permitted provided that the following conditions
9aa864558SBrian Feldman * are met:
10aa864558SBrian Feldman * 1. Redistributions of source code must retain the above copyright
11aa864558SBrian Feldman * notice, this list of conditions and the following disclaimer.
12aa864558SBrian Feldman * 2. Redistributions in binary form must reproduce the above copyright
13aa864558SBrian Feldman * notice, this list of conditions and the following disclaimer in the
14aa864558SBrian Feldman * documentation and/or other materials provided with the distribution.
15aa864558SBrian Feldman *
16aa864558SBrian Feldman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17aa864558SBrian Feldman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18aa864558SBrian Feldman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19aa864558SBrian Feldman * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20aa864558SBrian Feldman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21aa864558SBrian Feldman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22aa864558SBrian Feldman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23aa864558SBrian Feldman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24aa864558SBrian Feldman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25aa864558SBrian Feldman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26aa864558SBrian Feldman * SUCH DAMAGE.
27aa864558SBrian Feldman */
28aa864558SBrian Feldman
298719c58fSMatthew Dillon #include <sys/cdefs.h>
30aa864558SBrian Feldman #include <stdio.h>
31aa864558SBrian Feldman #include <stdlib.h>
32547fa0d9SMark Murray #include <unistd.h>
33aa864558SBrian Feldman
34aa864558SBrian Feldman /*
35aa864558SBrian Feldman * Stub out what's in -lcrypt.
36aa864558SBrian Feldman */
37aa864558SBrian Feldman
38aa864558SBrian Feldman #pragma weak crypt_set_format
39547fa0d9SMark Murray /* ARGSUSED */
40aa864558SBrian Feldman int
crypt_set_format(const char * f __unused)41547fa0d9SMark Murray crypt_set_format(const char *f __unused) {
42aa864558SBrian Feldman
43aa864558SBrian Feldman if (getenv("CRYPT_DEBUG") != NULL)
44aa864558SBrian Feldman fprintf(stderr, "crypt_set_format: eek, stub called!\n");
45aa864558SBrian Feldman return (0);
46aa864558SBrian Feldman }
47