Skip to content

Commit

Permalink
fix: Need for Speed: make EC keys the default (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Jul 21, 2022
1 parent 2788b37 commit ced0f58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"@openziti/ziti-browzer-core": "^0.16.2",
"@openziti/ziti-browzer-core": "^0.16.4",
"cookie-interceptor": "^1.0.0",
"core-js": "^3.22.8",
"js-base64": "^3.7.2",
Expand All @@ -102,4 +102,4 @@
"uuid": "^8.3.2",
"workbox-window": "^6.5.3"
}
}
}
5 changes: 4 additions & 1 deletion src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
ZitiFormData,
BrowserStdout,
http,
ZITI_EVP_PKEY_EC,
} from '@openziti/ziti-browzer-core';

import {Workbox} from'workbox-window';
Expand All @@ -38,7 +39,7 @@ import { ZitiXMLHttpRequest } from './http/ziti-xhr';
import { buildInfo } from './buildInfo'


var MAX_ZITI_FETCH_COUNT = 1; // aka the maximum number of concurrent Ziti Network Requests (TEMP)
var MAX_ZITI_FETCH_COUNT = 10; // aka the maximum number of concurrent Ziti Network Requests (TEMP)


/**
Expand Down Expand Up @@ -172,6 +173,8 @@ class ZitiBrowzerRuntime {
});
this.logger.trace(`ZitiContext created`);

this.zitiContext.setKeyTypeEC();

window._zitiContext = this.zitiContext; // allow WASM to find us

await this.zitiContext.initialize({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,10 @@
"@types/emscripten" "^1.39.6"
"@wasmer/wasi" "^1.0.2"

"@openziti/ziti-browzer-core@^0.16.2":
version "0.16.2"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.16.2.tgz#349cee32c88f5adf344f4176c58941c8c326384c"
integrity sha512-UT3A14VaOH88LvjZOv24pAN0L8YelODHtISQjaIZ1/3nKeNUyem+1mwFpxD44oR0L1PmSKGfQzTpbBTCXlef2A==
"@openziti/ziti-browzer-core@^0.16.4":
version "0.16.4"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.16.4.tgz#c92a241edbb16a2c50cf2cf96a9a6516d55abb3d"
integrity sha512-saGXuqea1KERDYOlpjZH/xRuCMyReS6rn/3+z+F6c27hy6qSutD9isC+eQ/wt90ELBIh2DEra/5B7n70yKil4w==
dependencies:
"@openziti/libcrypto-js" "^0.9.0"
"@openziti/ziti-browzer-edge-client" "^0.2.0"
Expand Down

0 comments on commit ced0f58

Please sign in to comment.