Lines Matching +full:version +full:- +full:minor
2 * Copyright 2018-2023 The OpenSSL Project Authors. All Rights Reserved.
69 int major, minor, patch; member
73 * Query the FIPS provider to determine it's version number.
74 * Returns 1 if the version is retrieved correctly, 0 if the FIPS provider isn't
75 * loaded and -1 on error.
87 return -1; in fips_provider_version()
89 || sscanf(vs, "%d.%d.%d", &vers->major, &vers->minor, &vers->patch) != 3) in fips_provider_version()
92 return -1; in fips_provider_version()
96 return -1; in fips_provider_version()
99 int fips_provider_version_eq(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_eq() argument
106 return major == prov.major && minor == prov.minor && patch == prov.patch; in fips_provider_version_eq()
109 int fips_provider_version_ne(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ne() argument
116 return major != prov.major || minor != prov.minor || patch != prov.patch; in fips_provider_version_ne()
119 int fips_provider_version_le(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_le() argument
128 && (prov.minor < minor in fips_provider_version_le()
129 || (prov.minor == minor && prov.patch <= patch))); in fips_provider_version_le()
132 int fips_provider_version_lt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_lt() argument
141 && (prov.minor < minor in fips_provider_version_lt()
142 || (prov.minor == minor && prov.patch < patch))); in fips_provider_version_lt()
145 int fips_provider_version_gt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_gt() argument
154 && (prov.minor > minor in fips_provider_version_gt()
155 || (prov.minor == minor && prov.patch > patch))); in fips_provider_version_gt()
158 int fips_provider_version_ge(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ge() argument
167 && (prov.minor > minor in fips_provider_version_ge()
168 || (prov.minor == minor && prov.patch >= patch))); in fips_provider_version_ge()
174 int major, minor, patch, r; in fips_provider_version_match() local
207 TEST_info("Error matching FIPS version: mode %s\n", p); in fips_provider_version_match()
208 return -1; in fips_provider_version_match()
210 if (sscanf(p, "%d.%d.%d", &major, &minor, &patch) != 3) { in fips_provider_version_match()
211 TEST_info("Error matching FIPS version: version %s\n", p); in fips_provider_version_match()
212 return -1; in fips_provider_version_match()
216 r = fips_provider_version_eq(libctx, major, minor, patch); in fips_provider_version_match()
219 r = fips_provider_version_ne(libctx, major, minor, patch); in fips_provider_version_match()
222 r = fips_provider_version_le(libctx, major, minor, patch); in fips_provider_version_match()
225 r = fips_provider_version_lt(libctx, major, minor, patch); in fips_provider_version_match()
228 r = fips_provider_version_gt(libctx, major, minor, patch); in fips_provider_version_match()
231 r = fips_provider_version_ge(libctx, major, minor, patch); in fips_provider_version_match()
235 TEST_info("Error matching FIPS version: internal error\n"); in fips_provider_version_match()
236 return -1; in fips_provider_version_match()