Lines Matching defs:ca_cert
1171 const char *ca_cert,
1180 if (ca_cert && os_strncmp(ca_cert, "probe://", 8) == 0) {
1188 if (ca_cert && os_strncmp(ca_cert, "hash://", 7) == 0) {
1190 const char *pos = ca_cert + 7;
1194 "wolfSSL: Unsupported ca_cert hash value '%s'",
1195 ca_cert);
1201 "wolfSSL: Unexpected SHA256 hash length in ca_cert '%s'",
1202 ca_cert);
1207 "wolfSSL: Invalid SHA256 hash value in ca_cert '%s'",
1208 ca_cert);
1239 if (ca_cert || ca_path) {
1249 if (wolfSSL_CTX_load_verify_locations(ctx, ca_cert, ca_path) !=
1252 "SSL: failed to load ca_cert as PEM");
1254 if (!ca_cert)
1258 ctx, ca_cert, SSL_FILETYPE_ASN1) !=
1261 "SSL: failed to load ca_cert as DER");
1304 if (tls_connection_ca_cert(tls_ctx, conn, params->ca_cert,
1384 static int tls_global_ca_cert(void *ssl_ctx, const char *ca_cert)
1388 if (ca_cert) {
1389 if (wolfSSL_CTX_load_verify_locations(ctx, ca_cert, NULL) != 1)
1532 if (tls_global_ca_cert(tls_ctx, params->ca_cert) < 0) {
1534 params->ca_cert);