Eneboo - Documentación para desarrolladores
src/libdigidoc/openssl/crypto/o_dir.h
Ir a la documentación de este archivo.
00001 /* crypto/o_dir.h -*- mode:C; c-file-style: "eay" -*- */
00002 /* Copied from Richard Levitte's (richard@levitte.org) LP library.  All
00003  * symbol names have been changed, with permission from the author.
00004  */
00005 
00006 /* $LP: LPlib/source/LPdir.h,v 1.1 2004/06/14 08:56:04 _cvs_levitte Exp $ */
00007 /*
00008  * Copyright (c) 2004, Richard Levitte <richard@levitte.org>
00009  * All rights reserved.
00010  *
00011  * Redistribution and use in source and binary forms, with or without
00012  * modification, are permitted provided that the following conditions
00013  * are met:
00014  * 1. Redistributions of source code must retain the above copyright
00015  *    notice, this list of conditions and the following disclaimer.
00016  * 2. Redistributions in binary form must reproduce the above copyright
00017  *    notice, this list of conditions and the following disclaimer in the
00018  *    documentation and/or other materials provided with the distribution.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00021  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00022  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00023  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00024  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00025  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00026  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00027  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00028  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00029  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00030  * SUCH DAMAGE.
00031  */
00032 
00033 
00034 #ifndef O_DIR_H
00035 #define O_DIR_H
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041   typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX;
00042 
00043   /* returns NULL on error or end-of-directory.
00044      If it is end-of-directory, errno will be zero */
00045   const char *OPENSSL_DIR_read(OPENSSL_DIR_CTX **ctx, const char *directory);
00046   /* returns 1 on success, 0 on error */
00047   int OPENSSL_DIR_end(OPENSSL_DIR_CTX **ctx);
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif /* LPDIR_H */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'