1/*
2 * WARNING: do not edit!
3 * Generated by Makefile from ../include/openssl/opensslv.h.in
4 *
5 * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved.
6 *
7 * Licensed under the Apache License 2.0 (the "License"). You may not use
8 * this file except in compliance with the License. You can obtain a copy
9 * in the file LICENSE in the source distribution or at
10 * https://www.openssl.org/source/license.html
11 */
12
13#ifndef OPENSSL_OPENSSLV_H
14# define OPENSSL_OPENSSLV_H
15# pragma once
16
17# ifdef __cplusplus
18extern "C" {
19# endif
20
21/*
22 * SECTION 1: VERSION DATA. These will change for each release
23 */
24
25/*
26 * Base version macros
27 *
28 * These macros express version number MAJOR.MINOR.PATCH exactly
29 */
30# define OPENSSL_VERSION_MAJOR 3
31# define OPENSSL_VERSION_MINOR 0
32# define OPENSSL_VERSION_PATCH 2
33
34/*
35 * Additional version information
36 *
37 * These are also part of the new version scheme, but aren't part
38 * of the version number itself.
39 */
40
41/* Could be: #define OPENSSL_VERSION_PRE_RELEASE "-alpha.1" */
42# define OPENSSL_VERSION_PRE_RELEASE ""
43/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+fips" */
44/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+vendor.1" */
45# define OPENSSL_VERSION_BUILD_METADATA ""
46
47/*
48 * Note: The OpenSSL Project will never define OPENSSL_VERSION_BUILD_METADATA
49 * to be anything but the empty string. Its use is entirely reserved for
50 * others
51 */
52
53/*
54 * Shared library version
55 *
56 * This is strictly to express ABI version, which may or may not
57 * be related to the API version expressed with the macros above.
58 * This is defined in free form.
59 */
60# define OPENSSL_SHLIB_VERSION 3
61
62/*
63 * SECTION 2: USEFUL MACROS
64 */
65
66/* For checking general API compatibility when preprocessing */
67# define OPENSSL_VERSION_PREREQ(maj,min) \
68 ((OPENSSL_VERSION_MAJOR << 16) + OPENSSL_VERSION_MINOR >= ((maj) << 16) + (min))
69
70/*
71 * Macros to get the version in easily digested string form, both the short
72 * "MAJOR.MINOR.PATCH" variant (where MAJOR, MINOR and PATCH are replaced
73 * with the values from the corresponding OPENSSL_VERSION_ macros) and the
74 * longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
75 * OPENSSL_VERSION_BUILD_METADATA_STR appended.
76 */
77# define OPENSSL_VERSION_STR "3.0.2"
78# define OPENSSL_FULL_VERSION_STR "3.0.2"
79
80/*
81 * SECTION 3: ADDITIONAL METADATA
82 *
83 * These strings are defined separately to allow them to be parsable.
84 */
85# define OPENSSL_RELEASE_DATE "15 Mar 2022"
86
87/*
88 * SECTION 4: BACKWARD COMPATIBILITY
89 */
90
91# define OPENSSL_VERSION_TEXT "OpenSSL 3.0.2 15 Mar 2022"
92
93/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
94# ifdef OPENSSL_VERSION_PRE_RELEASE
95# define _OPENSSL_VERSION_PRE_RELEASE 0x0L
96# else
97# define _OPENSSL_VERSION_PRE_RELEASE 0xfL
98# endif
99# define OPENSSL_VERSION_NUMBER \
100 ( (OPENSSL_VERSION_MAJOR<<28) \
101 |(OPENSSL_VERSION_MINOR<<20) \
102 |(OPENSSL_VERSION_PATCH<<4) \
103 |_OPENSSL_VERSION_PRE_RELEASE )
104
105# ifdef __cplusplus
106}
107# endif
108
109# include <openssl/macros.h>
110# ifndef OPENSSL_NO_DEPRECATED_3_0
111# define HEADER_OPENSSLV_H
112# endif
113
114#endif /* OPENSSL_OPENSSLV_H */
115