-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add set_tls_certificate wrapper function
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module vwebui | ||
|
||
#flag -DWEBUI_USE_TLS -DWEBUI_TLS -DNO_SSL_DL -DOPENSSL_API_1_1 | ||
#flag -lssl -lcrypto | ||
#flag windows -lBcrypt | ||
|
||
fn set_tls_certificate(certificate_pem string, private_key_pem string) ! { | ||
if !C.webui_set_tls_certificate(&char(certificate_pem.str), &char(private_key_pem.str)) { | ||
return error('Failed setting tls certificate.') | ||
} | ||
} |