2016-05-17 18:24:17 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
/*
|
2017-06-20 02:48:25 +00:00
|
|
|
* This file is dual-licensed and is also available under the following
|
2017-06-15 17:15:26 +00:00
|
|
|
* terms:
|
|
|
|
*
|
2004-07-10 13:16:02 +00:00
|
|
|
* Copyright (c) 2004, Richard Levitte <richard@levitte.org>
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef O_DIR_H
|
2015-01-22 03:40:55 +00:00
|
|
|
# define O_DIR_H
|
2004-07-10 13:16:02 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX;
|
2004-07-10 13:16:02 +00:00
|
|
|
|
2017-08-11 14:15:22 +00:00
|
|
|
/*
|
|
|
|
* returns NULL on error or end-of-directory. If it is end-of-directory,
|
|
|
|
* errno will be zero
|
|
|
|
*/
|
2015-01-22 03:40:55 +00:00
|
|
|
const char *OPENSSL_DIR_read(OPENSSL_DIR_CTX **ctx, const char *directory);
|
2017-08-11 14:15:22 +00:00
|
|
|
/* returns 1 on success, 0 on error */
|
2015-01-22 03:40:55 +00:00
|
|
|
int OPENSSL_DIR_end(OPENSSL_DIR_CTX **ctx);
|
2004-07-10 13:16:02 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
#endif /* LPDIR_H */
|