ustream-ssl: mbedtls: fix ssl client verification
[oweals/openwrt-ustream-ssl.git] / ustream-mbedtls.c
index 85bbb1c7c9ea18c04ba9bfcbba1e919a72e13c68..74c27a51b8c67db2339de8fe49eb1b1502c75a50 100644 (file)
@@ -182,16 +182,9 @@ static void ustream_ssl_update_own_cert(struct ustream_ssl_ctx *ctx)
        if (!ctx->cert.version)
                return;
 
-       if (!ctx->server) {
-               mbedtls_ssl_conf_ca_chain(&ctx->conf, &ctx->cert, NULL);
-               return;
-       }
-
        if (!ctx->key.pk_info)
                return;
 
-       if (ctx->cert.next)
-               mbedtls_ssl_conf_ca_chain(&ctx->conf, ctx->cert.next, NULL);
        mbedtls_ssl_conf_own_cert(&ctx->conf, &ctx->cert, &ctx->key);
 }