File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,7 @@ $if macos {
15
15
$if msvc {
16
16
#flag -lAdvapi32 -lShell32 -lUser32
17
17
}
18
- $if use_tls ? {
19
- #flag -DWEBUI_USE_TLS -DWEBUI_TLS -DNO_SSL_DL -DOPENSSL_API_1_1
20
- #flag -lssl -lcrypto
21
- #flag windows -lBcrypt
22
- } $else {
18
+ $if ! tls ? {
23
19
#flag -DNO_SSL
24
20
}
25
21
$if webui_log ? {
Original file line number Diff line number Diff line change
1
+ module vwebui
2
+
3
+ #flag -DWEBUI_USE_TLS -DWEBUI_TLS -DNO_SSL_DL -DOPENSSL_API_1_1
4
+ #flag -lssl -lcrypto
5
+ #flag windows -lBcrypt
6
+
7
+ fn set_tls_certificate (certificate_pem string , private_key_pem string ) ! {
8
+ if ! C.webui_set_tls_certificate (& char (certificate_pem.str), & char (private_key_pem.str)) {
9
+ return error ('Failed setting tls certificate.' )
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments