stub.c revision 84225
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 2784225Sdillon#include <sys/cdefs.h> 2884225Sdillon__FBSDID("$FreeBSD: head/lib/libutil/stub.c 84225 2001-09-30 22:35:07Z dillon $"); 2984225Sdillon 3067671Sgreen#include <stdio.h> 3167671Sgreen#include <stdlib.h> 3267671Sgreen 3367671Sgreen/* 3467671Sgreen * Stub out what's in -lcrypt. 3567671Sgreen */ 3667671Sgreen 3767671Sgreen#pragma weak crypt_set_format 3867671Sgreenint 3967671Sgreencrypt_set_format(const char *f) { 4067671Sgreen 4167671Sgreen if (getenv("CRYPT_DEBUG") != NULL) 4267671Sgreen fprintf(stderr, "crypt_set_format: eek, stub called!\n"); 4367671Sgreen return (0); 4467671Sgreen} 45