Lines Matching defs:ca_cert
1135 const char *ca_cert,
1144 if (ca_cert && os_strncmp(ca_cert, "probe://", 8) == 0) {
1152 if (ca_cert && os_strncmp(ca_cert, "hash://", 7) == 0) {
1154 const char *pos = ca_cert + 7;
1158 "wolfSSL: Unsupported ca_cert hash value '%s'",
1159 ca_cert);
1165 "wolfSSL: Unexpected SHA256 hash length in ca_cert '%s'",
1166 ca_cert);
1171 "wolfSSL: Invalid SHA256 hash value in ca_cert '%s'",
1172 ca_cert);
1197 if (ca_cert || ca_path) {
1207 if (wolfSSL_CTX_load_verify_locations(ctx, ca_cert, ca_path) !=
1210 "SSL: failed to load ca_cert as PEM");
1212 if (!ca_cert)
1216 ctx, ca_cert, SSL_FILETYPE_ASN1) !=
1219 "SSL: failed to load ca_cert as DER");
1262 if (tls_connection_ca_cert(tls_ctx, conn, params->ca_cert,
1344 static int tls_global_ca_cert(void *ssl_ctx, const char *ca_cert)
1348 if (ca_cert) {
1349 if (wolfSSL_CTX_load_verify_locations(ctx, ca_cert, NULL) != 1)
1507 if (tls_global_ca_cert(tls_ctx, params->ca_cert) < 0) {
1509 params->ca_cert);