Grid Community Toolkit
6.2.1705709074 (tag: v6.2.20240202)
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
gsi_openssh
source
fips_mode_replacement.h
1
/*
2
* Copyright 2021- Grid Community Forum
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef FIPS_MODE_REPLACEMENT_H
18
#define FIPS_MODE_REPLACEMENT_H
19
20
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
21
/*
22
* OpenSSL versions 3.0 and up no longer have FIPS_mode(). To support both
23
* OpenSSL 3.x and older versions for other OSes, we use the replacement
24
* function as shipped by Fedora/RHEL/CentOS in their OpenSSL 3.x packages.
25
*/
26
# ifndef FIPS_mode
27
# define FIPS_mode() EVP_default_properties_is_fips_enabled(NULL)
28
# endif
/* FIPS_mode */
29
#endif
/* openssl */
30
31
#endif
/* FIPS_MODE_REPLACEMENT_H */
Generated by
1.8.5