Home
last modified time | relevance | path

Searched refs:max_version (Results 1 – 25 of 35) sorted by relevance

12

/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Dciphers.c106 int min_version = 0, max_version = 0; in ciphers_main() local
137 max_version = SSL3_VERSION; in ciphers_main()
141 max_version = TLS1_VERSION; in ciphers_main()
145 max_version = TLS1_1_VERSION; in ciphers_main()
149 max_version = TLS1_2_VERSION; in ciphers_main()
153 max_version = TLS1_3_VERSION; in ciphers_main()
195 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
H A Ds_time.c130 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local
211 max_version = SSL3_VERSION; in s_time_main()
215 max_version = TLS1_VERSION; in s_time_main()
219 max_version = TLS1_1_VERSION; in s_time_main()
223 max_version = TLS1_2_VERSION; in s_time_main()
227 max_version = TLS1_3_VERSION; in s_time_main()
250 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
H A Ds_client.c868 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local
1207 max_version = SSL3_VERSION; in s_client_main()
1215 max_version = TLS1_3_VERSION; in s_client_main()
1223 max_version = TLS1_2_VERSION; in s_client_main()
1231 max_version = TLS1_1_VERSION; in s_client_main()
1239 max_version = TLS1_VERSION; in s_client_main()
1256 max_version = DTLS1_VERSION; in s_client_main()
1265 max_version = DTLS1_2_VERSION; in s_client_main()
1720 if (max_version != 0 in s_client_main()
1721 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_client_main()
H A Ds_server.c1036 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local
1480 max_version = SSL3_VERSION; in s_server_main()
1484 max_version = TLS1_3_VERSION; in s_server_main()
1488 max_version = TLS1_2_VERSION; in s_server_main()
1492 max_version = TLS1_1_VERSION; in s_server_main()
1496 max_version = TLS1_VERSION; in s_server_main()
1508 max_version = DTLS1_VERSION; in s_server_main()
1516 max_version = DTLS1_2_VERSION; in s_server_main()
1870 if (max_version != 0 in s_server_main()
1871 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
/netbsd-src/crypto/external/bsd/openssl.old/dist/apps/
H A Dciphers.c100 int min_version = 0, max_version = 0; in ciphers_main() local
131 max_version = SSL3_VERSION; in ciphers_main()
135 max_version = TLS1_VERSION; in ciphers_main()
139 max_version = TLS1_1_VERSION; in ciphers_main()
143 max_version = TLS1_2_VERSION; in ciphers_main()
147 max_version = TLS1_3_VERSION; in ciphers_main()
184 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in ciphers_main()
H A Ds_time.c105 int max_version = 0, ver, buf_len; in s_time_main() local
181 max_version = SSL3_VERSION; in s_time_main()
197 if (SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_time_main()
H A Ds_client.c964 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_client_main() local
1286 max_version = SSL3_VERSION; in s_client_main()
1294 max_version = TLS1_3_VERSION; in s_client_main()
1302 max_version = TLS1_2_VERSION; in s_client_main()
1310 max_version = TLS1_1_VERSION; in s_client_main()
1318 max_version = TLS1_VERSION; in s_client_main()
1335 max_version = DTLS1_VERSION; in s_client_main()
1344 max_version = DTLS1_2_VERSION; in s_client_main()
1760 if (max_version != 0 in s_client_main()
1761 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_client_main()
H A Ds_server.c1043 int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0; in s_server_main() local
1460 max_version = SSL3_VERSION; in s_server_main()
1464 max_version = TLS1_3_VERSION; in s_server_main()
1468 max_version = TLS1_2_VERSION; in s_server_main()
1472 max_version = TLS1_1_VERSION; in s_server_main()
1476 max_version = TLS1_VERSION; in s_server_main()
1488 max_version = DTLS1_VERSION; in s_server_main()
1496 max_version = DTLS1_2_VERSION; in s_server_main()
1821 if (max_version != 0 in s_server_main()
1822 && SSL_CTX_set_max_proto_version(ctx, max_version) == 0) in s_server_main()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/pci/
H A Dnouveau_nvkm_subdev_pci_pcie.c102 int max_version = nvkm_pcie_get_max_version(pci); in nvkm_pcie_init() local
103 if (max_version > 0 && max_version > ret) in nvkm_pcie_init()
104 ret = nvkm_pcie_set_version(pci, max_version); in nvkm_pcie_init()
106 if (ret < max_version) in nvkm_pcie_init()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dssl_ctx_test.c15 int max_version; member
48 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version()
57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version()
H A Dssltest_old.c924 int min_version = 0, max_version = 0; in main() local
1362 max_version = SSL3_VERSION; in main()
1365 max_version = TLS1_VERSION; in main()
1368 max_version = TLS1_1_VERSION; in main()
1371 max_version = TLS1_2_VERSION; in main()
1374 max_version = TLS_MAX_VERSION; in main()
1382 max_version = DTLS1_VERSION; in main()
1385 max_version = DTLS1_2_VERSION; in main()
1388 max_version = DTLS_MAX_VERSION; in main()
1416 if (SSL_CTX_set_max_proto_version(c_ctx, max_version) == 0) in main()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dssl_ctx_test.c15 int max_version; member
48 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version()
57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version()
H A Dssl_old_test.c918 int min_version = 0, max_version = 0; in main() local
1347 max_version = SSL3_VERSION; in main()
1350 max_version = TLS1_VERSION; in main()
1353 max_version = TLS1_1_VERSION; in main()
1356 max_version = TLS1_2_VERSION; in main()
1361 max_version = TLS1_2_VERSION; in main()
1363 max_version = 0; in main()
1372 max_version = DTLS1_VERSION; in main()
1375 max_version = DTLS1_2_VERSION; in main()
1378 max_version = 0; in main()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dssl_conf.c96 int *max_version; member
371 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
971 cctx->max_version = &ssl->max_proto_version; in SSL_CONF_CTX_set_ssl()
977 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl()
990 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx()
996 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
H A Dssl_lib.c463 static int ssl_check_allowed_versions(int min_version, int max_version) in ssl_check_allowed_versions() argument
471 if (max_version == DTLS1_BAD_VER in ssl_check_allowed_versions()
472 || max_version >> 8 == DTLS1_VERSION_MAJOR) in ssl_check_allowed_versions()
475 if ((minisdtls && !maxisdtls && max_version != 0) in ssl_check_allowed_versions()
486 if (max_version == 0) in ssl_check_allowed_versions()
487 max_version = DTLS1_2_VERSION; in ssl_check_allowed_versions()
489 if (max_version == DTLS1_2_VERSION) in ssl_check_allowed_versions()
490 max_version = DTLS1_VERSION; in ssl_check_allowed_versions()
500 && DTLS_VERSION_GE(DTLS1_VERSION, max_version)) in ssl_check_allowed_versions()
504 && DTLS_VERSION_GE(DTLS1_2_VERSION, max_version)) in ssl_check_allowed_versions()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dssl_conf.c97 int *max_version; member
369 return min_max_proto(cctx, value, cctx->max_version); in cmd_MaxProtocol()
1060 cctx->max_version = &ssl->max_proto_version; in SSL_CONF_CTX_set_ssl()
1066 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl()
1079 cctx->max_version = &ctx->max_proto_version; in SSL_CONF_CTX_set_ssl_ctx()
1085 cctx->max_version = NULL; in SSL_CONF_CTX_set_ssl_ctx()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/statem/
H A Dextensions.c777 int max_version) in should_add_extension() argument
787 && (SSL_IS_DTLS(s) || max_version < TLS1_3_VERSION))) in should_add_extension()
805 int min_version, max_version = 0, reason; in tls_construct_extensions() local
824 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_extensions()
837 if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) { in tls_construct_extensions()
848 if (!should_add_extension(s, thisexd->context, context, max_version)) in tls_construct_extensions()
H A Dextensions_clnt.c525 int currv, min_version, max_version, reason; in tls_construct_ctos_supported_versions() local
527 reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL); in tls_construct_ctos_supported_versions()
538 if (max_version < TLS1_3_VERSION) in tls_construct_ctos_supported_versions()
550 for (currv = max_version; currv >= min_version; currv--) { in tls_construct_ctos_supported_versions()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ossl_shim/
H A Dtest_config.h52 int max_version = 0; member
H A Dtest_config.cc117 { "-max-version", &TestConfig::max_version },
/netbsd-src/sys/external/bsd/drm2/dist/drm/virtio/
H A Dvirtgpu_kms.c110 vgdev->capsets[i].max_version, in virtio_gpu_get_capsets()
H A Dvirtgpu_drv.h155 uint32_t max_version; member
H A Dvirtgpu_ioctl.c425 if (vgdev->capsets[i].max_version >= args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/
H A Dcollctrl.cc2637 int max_version = version - 1; in update_expt_name() local
2667 if (dversion > max_version) in update_expt_name()
2668 max_version = dversion; in update_expt_name()
2675 version = max_version + 1; in update_expt_name()
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/
H A Dcollctrl.cc2630 int max_version = version - 1; in update_expt_name() local
2660 if (dversion > max_version) in update_expt_name()
2661 max_version = dversion; in update_expt_name()
2668 version = max_version + 1; in update_expt_name()

12