Matt Corallo
832daf54db
tabstabstabstabstabs
11 years ago
lilia
be52e4c3a4
Fix infinite recursion in ensureStringed(Array)
...
To ensureStringed(thing), you must first ensureStringed(thing)...
This was causing an infintel loop in multidevice mode.
11 years ago
lilia
fe1b5435aa
Add FakeWhisperAPI for serverless development
...
When included after api.js, fake_api.js inits a FakeWhisperAPI.
FakeWhisperAPI inherits the methods of API, overrides a few, and
then usurps its place as the one true API.
Single device mode successfully "registers" against FakeAPI. Sadly,
multidevice mode has a recursive loop somewhere that makes the callstack
asplode.
11 years ago
lilia
6934ba0b92
Refactor Server API functions
...
The details of the server API are now mostly relegated to api.js, and
accessed through the API container object, improving modularity and
readability, and setting us up to derive a FakeAPI for serverless
development.
11 years ago
Matt Corallo
1c20dba67f
Merge pull request #2 from liliakai/master
...
Make booleans stringable
11 years ago
lilia
0d5d14da6a
Fix the clickies
11 years ago
lilia
820d67a0ba
Avoid jsonifying undefined data
...
For example, when requesting a verification code, there is no JSON data
to send.
11 years ago
lilia
0fff393ebf
Make booleans stringable
...
Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false
11 years ago
Matt Corallo
fee6a69083
Optional curve25519 in js
11 years ago
Matt Corallo
85f419b923
Passing test-cases (fscking type conversions...)
11 years ago
Matt Corallo
e932536dfd
Untested send-encrypted support
11 years ago
Matt Corallo
fe570c754a
Genericify initSession (and break it for alice)
11 years ago
Matt Corallo
611d5329d3
Pass tests
11 years ago
Matt Corallo
6e0fe271ab
Few more steps
11 years ago
Matt Corallo
465bdf2bd3
Abstract out lots of CryptoJS
11 years ago
Matt Corallo
dd3dd11b32
Updates, more tests, etc
11 years ago
Matt Corallo
da1b021972
Fix up initial ratchet stuff
11 years ago
Matt Corallo
3c603c72b4
Lots of updates post-test-cases
11 years ago
Matt Corallo
e0d0df3b4a
ECDHE through NaCL
11 years ago
Matt Corallo
8db3885659
Updates, NaCL
11 years ago
Matt Corallo
eec4c66ef6
Fixup dir structure
11 years ago