]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/info.c
Implement EVP_MAC_do_all_ex()
[thirdparty/openssl.git] / crypto / info.c
CommitLineData
0109e030
RL
1/*
2 * Copyright 2019 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#include <stddef.h>
11#include <openssl/crypto.h>
12#include "internal/dso_conf.h"
13#include "e_os.h"
14
15const char *OPENSSL_info(int t)
16{
17 switch (t) {
18 case OPENSSL_INFO_CONFIG_DIR:
19 return OPENSSLDIR;
20 case OPENSSL_INFO_ENGINES_DIR:
21 return ENGINESDIR;
22 case OPENSSL_INFO_MODULES_DIR:
23 return MODULESDIR;
24 case OPENSSL_INFO_DSO_EXTENSION:
25 return DSO_EXTENSION;
26 case OPENSSL_INFO_DIR_FILENAME_SEPARATOR:
27#if defined(_WIN32)
28 return "\\";
29#elif defined(__VMS)
30 return "";
31#else /* Assume POSIX */
32 return "/";
33#endif
34 case OPENSSL_INFO_LIST_SEPARATOR:
35 {
36 static const char list_sep[] = { LIST_SEPARATOR_CHAR, '\0' };
37 return list_sep;
38 }
39 default:
40 break;
41 }
42 /* Not an error */
43 return NULL;
44}