• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is dual licensed under the terms of the Apache License, Version
2# 2.0, and the BSD License. See the LICENSE file in the root of this repository
3# for complete details.
4
5from __future__ import absolute_import, division, print_function
6
7INCLUDES = """
8#include <openssl/crypto.h>
9"""
10
11TYPES = """
12static const long Cryptography_HAS_FIPS;
13"""
14
15FUNCTIONS = """
16int FIPS_mode_set(int);
17int FIPS_mode(void);
18"""
19
20CUSTOMIZATIONS = """
21#if CRYPTOGRAPHY_IS_LIBRESSL
22static const long Cryptography_HAS_FIPS = 0;
23int (*FIPS_mode_set)(int) = NULL;
24int (*FIPS_mode)(void) = NULL;
25#else
26static const long Cryptography_HAS_FIPS = 1;
27#endif
28"""
29