mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
add function to get cert bundle
This commit is contained in:
parent
96ff9c337a
commit
c681e21777
3 changed files with 11 additions and 1 deletions
|
@ -252,6 +252,10 @@ function get_version() {
|
|||
return version_dict;
|
||||
}
|
||||
|
||||
function get_cacert() {
|
||||
return UTF8ToString(_get_cacert());
|
||||
}
|
||||
|
||||
function main() {
|
||||
wasm_ready = true;
|
||||
_init_curl();
|
||||
|
@ -277,6 +281,7 @@ api = {
|
|||
load_wasm: load_wasm,
|
||||
WebSocket: CurlWebSocket,
|
||||
TLSSocket: TLSSocket,
|
||||
get_cacert: get_cacert,
|
||||
|
||||
wisp_connections: _wisp_connections,
|
||||
WispConnection: WispConnection,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue