The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
version.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 /**
18  * $Id: 083768dc6fee40d2a1ea125f03edb50fe0d5389b $
19  *
20  * @file lib/tls/version.h
21  * @brief Structures for dealing with OpenSSL library versions
22  *
23  * @copyright 2022 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24  */
25 RCSIDH(tls_version_h, "$Id: 083768dc6fee40d2a1ea125f03edb50fe0d5389b $")
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #include "openssl_user_macros.h"
32 
33 #ifdef WITH_TLS
34 # include <openssl/ssl.h>
35 #endif
36 
37 /*
38  * If we're not building with TLS, dummy functions will
39  * be provided.
40  */
43 char const *fr_openssl_version_basic(void);
45 char const *fr_openssl_version_expanded(void);
46 
47 #ifdef ENABLE_OPENSSL_VERSION_CHECK
48 int fr_openssl_version_check(char const *acknowledged);
49 #endif
50 
51 #ifdef __cplusplus
52 }
53 #endif
#define RCSIDH(h, id)
Definition: build.h:482
unsigned int uint32_t
Definition: merged_model.c:33
char const * fr_openssl_version_str_from_num(uint32_t version)
int fr_openssl_version_consistent(void)
Definition: version.c:280
char const * fr_openssl_version_expanded(void)
Definition: version.c:289
char const * fr_openssl_version_basic(void)
Definition: version.c:284
char const * fr_openssl_version_range(uint32_t low, uint32_t high)