xref: /src/crypto/openssl/include/internal/conf.h (revision f25b8c9fb4f58cf61adb47d7570abe7caa6d385d)
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 | CONF_MFLAGS_IGNORE_MISSING_FILE | CONF_MFLAGS_IGNORE_RETURN_CODES)
18 
19 struct ossl_init_settings_st {
20     char *filename;
21     char *appname;
22     unsigned long flags;
23 };
24 
25 int ossl_config_int(const OPENSSL_INIT_SETTINGS *);
26 void ossl_no_config_int(void);
27 void ossl_config_modules_free(void);
28 
29 #endif
30