o_dir.h revision 2139:6243c3338933
10Sstevel@tonic-gate/* crypto/o_dir.h -*- mode:C; c-file-style: "eay" -*- */
20Sstevel@tonic-gate/* Copied from Richard Levitte's (richard@levitte.org) LP library.  All
30Sstevel@tonic-gate * symbol names have been changed, with permission from the author.
40Sstevel@tonic-gate */
56247Sraf
66247Sraf/* $LP: LPlib/source/LPdir.h,v 1.1 2004/06/14 08:56:04 _cvs_levitte Exp $ */
70Sstevel@tonic-gate/*
80Sstevel@tonic-gate * Copyright (c) 2004, Richard Levitte <richard@levitte.org>
90Sstevel@tonic-gate * All rights reserved.
100Sstevel@tonic-gate *
110Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without
120Sstevel@tonic-gate * modification, are permitted provided that the following conditions
130Sstevel@tonic-gate * are met:
140Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright
150Sstevel@tonic-gate *    notice, this list of conditions and the following disclaimer.
160Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright
170Sstevel@tonic-gate *    notice, this list of conditions and the following disclaimer in the
180Sstevel@tonic-gate *    documentation and/or other materials provided with the distribution.
190Sstevel@tonic-gate *
200Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
216247Sraf * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
220Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
236247Sraf * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
240Sstevel@tonic-gate * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
250Sstevel@tonic-gate * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
260Sstevel@tonic-gate * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
270Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
280Sstevel@tonic-gate * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
290Sstevel@tonic-gate * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
300Sstevel@tonic-gate * SUCH DAMAGE.
310Sstevel@tonic-gate */
320Sstevel@tonic-gate
330Sstevel@tonic-gate
340Sstevel@tonic-gate#ifndef O_DIR_H
350Sstevel@tonic-gate#define O_DIR_H
360Sstevel@tonic-gate
370Sstevel@tonic-gate#ifdef __cplusplus
380Sstevel@tonic-gateextern "C" {
390Sstevel@tonic-gate#endif
406247Sraf
416247Sraf  typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX;
420Sstevel@tonic-gate
430Sstevel@tonic-gate  /* returns NULL on error or end-of-directory.
440Sstevel@tonic-gate     If it is end-of-directory, errno will be zero */
456247Sraf  const char *OPENSSL_DIR_read(OPENSSL_DIR_CTX **ctx, const char *directory);
460Sstevel@tonic-gate  /* returns 1 on success, 0 on error */
476247Sraf  int OPENSSL_DIR_end(OPENSSL_DIR_CTX **ctx);
486247Sraf
496247Sraf#ifdef __cplusplus
506247Sraf}
516247Sraf#endif
526247Sraf
536247Sraf#endif /* LPDIR_H */
546247Sraf