xref: /freebsd/crypto/openssl/include/internal/conf.h (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1 /*
2  * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #ifndef OSSL_INTERNAL_CONF_H
11 # define OSSL_INTERNAL_CONF_H
12 # pragma once
13 
14 # include <openssl/conf.h>
15 
16 # define DEFAULT_CONF_MFLAGS \
17     (CONF_MFLAGS_DEFAULT_SECTION | \
18      CONF_MFLAGS_IGNORE_MISSING_FILE | \
19      CONF_MFLAGS_IGNORE_RETURN_CODES)
20 
21 struct ossl_init_settings_st {
22     char *filename;
23     char *appname;
24     unsigned long flags;
25 };
26 
27 int ossl_config_int(const OPENSSL_INIT_SETTINGS *);
28 void ossl_no_config_int(void);
29 void ossl_config_modules_free(void);
30 
31 #endif
32