Signed-off-by: Felix Fietkau <nbd@openwrt.org>
if (ret < 1)
ret = SSL_CTX_use_certificate_file(ctx, file, SSL_FILETYPE_ASN1);
- return ret;
+ if (ret < 1)
+ return -1;
+
+ return 0;
}
static int _ustream_ssl_context_set_key_file(void *ctx, const char *file)
if (ret < 1)
ret = SSL_CTX_use_PrivateKey_file(ctx, file, SSL_FILETYPE_ASN1);
- return ret;
+ if (ret < 1)
+ return -1;
+
+ return 0;
}
static void _ustream_ssl_context_free(void *ctx)