stub.c revision 67671
167671Sgreen/*-
267671Sgreen * Copyright (c) 2000 Brian Fundakowski Feldman
367671Sgreen * All rights reserved.
467671Sgreen *
567671Sgreen * Redistribution and use in source and binary forms, with or without
667671Sgreen * modification, are permitted provided that the following conditions
767671Sgreen * are met:
867671Sgreen * 1. Redistributions of source code must retain the above copyright
967671Sgreen *    notice, this list of conditions and the following disclaimer.
1067671Sgreen * 2. Redistributions in binary form must reproduce the above copyright
1167671Sgreen *    notice, this list of conditions and the following disclaimer in the
1267671Sgreen *    documentation and/or other materials provided with the distribution.
1367671Sgreen *
1467671Sgreen * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1567671Sgreen * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1667671Sgreen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1767671Sgreen * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1867671Sgreen * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1967671Sgreen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2067671Sgreen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2167671Sgreen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2267671Sgreen * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2367671Sgreen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2467671Sgreen * SUCH DAMAGE.
2567671Sgreen *
2667671Sgreen * $FreeBSD: head/lib/libutil/stub.c 67671 2000-10-27 01:19:02Z green $
2767671Sgreen */
2867671Sgreen
2967671Sgreen#include <stdio.h>
3067671Sgreen#include <stdlib.h>
3167671Sgreen
3267671Sgreen/*
3367671Sgreen * Stub out what's in -lcrypt.
3467671Sgreen */
3567671Sgreen
3667671Sgreen#pragma weak crypt_set_format
3767671Sgreenint
3867671Sgreencrypt_set_format(const char *f) {
3967671Sgreen
4067671Sgreen	if (getenv("CRYPT_DEBUG") != NULL)
4167671Sgreen		fprintf(stderr, "crypt_set_format: eek, stub called!\n");
4267671Sgreen	return (0);
4367671Sgreen}
44