Commit graph

10344 commits

Author SHA1 Message Date
Matt Corallo
8a2b35b48d Merge pull request #4 from liliakai/refactor
Refactor server API calls into a module
2014-03-22 14:58:11 -07:00
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.
2014-03-20 00:57:29 -07:00
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.
2014-03-20 00:57:29 -07:00
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.
2014-03-15 19:57:40 -07:00
Matt Corallo
288d66b4a3 New protos with group messaging stuff 2014-03-12 12:54:39 -07:00
Matt Corallo
1c20dba67f Merge pull request #2 from liliakai/master
Make booleans stringable
2014-03-11 11:13:34 -07:00
Matt Corallo
51f6437d4d Merge pull request #3 from liliakai/clickies
Fix the clickies
2014-03-11 11:12:58 -07:00
lilia
0d5d14da6a Fix the clickies 2014-03-10 22:53:06 -07:00
lilia
820d67a0ba Avoid jsonifying undefined data
For example, when requesting a verification code, there is no JSON data
to send.
2014-03-10 19:09:10 -07:00
lilia
0fff393ebf Make booleans stringable
Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false
2014-03-10 15:50:28 -07:00
Matt Corallo
7b0de6afe7 Merge pull request #1 from liliakai/master
Minor updates to curve255.js
2014-03-10 06:02:13 +00:00
lilia
a542d91bc6 Minor updates to curve255.js
1. Removes unused x arguments from several functions. Patched from:
https://github.com/rev22/curve255js/commit/cada7f96e4d9751184dc8

2. Lets curve25519b32 gracefully handle an undefined second argument.
2014-03-09 18:00:14 -07:00
Matt Corallo
b8357a6464 Unmiified js files, mostly 2014-03-09 17:54:44 -07:00
Matt Corallo
9e1c1f57f0 Add js 2014-03-09 20:32:34 -04:00
Matt Corallo
fee6a69083 Optional curve25519 in js 2014-03-09 20:32:00 -04:00
Matt Corallo
2c83fd9b5b Commit pnacl binaries (TODO: revertme at some point...) 2014-03-08 23:51:57 -08:00
Matt Corallo
85f419b923 Passing test-cases (fscking type conversions...) 2014-03-08 20:23:24 -05:00
Matt Corallo
e932536dfd Untested send-encrypted support 2014-03-08 19:15:36 -05:00
Matt Corallo
fe570c754a Genericify initSession (and break it for alice) 2014-03-08 19:08:40 -04:00
Matt Corallo
611d5329d3 Pass tests 2014-03-08 00:13:53 -04:00
Matt Corallo
6e0fe271ab Few more steps 2014-03-06 17:44:59 -04:00
Matt Corallo
465bdf2bd3 Abstract out lots of CryptoJS 2014-03-06 15:01:23 -04:00
Matt Corallo
dd3dd11b32 Updates, more tests, etc 2014-03-06 14:18:11 -04:00
Matt Corallo
6842f5331f Add README describing current state. 2014-03-06 14:12:24 -04:00
Matt Corallo
da1b021972 Fix up initial ratchet stuff 2014-03-06 00:17:09 -04:00
Matt Corallo
3c603c72b4 Lots of updates post-test-cases 2014-03-04 21:31:15 -04:00
Matt Corallo
6b0a1ac260 add nacl-common.js 2014-02-08 02:34:06 -05:00
Matt Corallo
e0d0df3b4a ECDHE through NaCL 2014-01-22 07:37:14 +00:00
Matt Corallo
8db3885659 Updates, NaCL 2014-01-22 06:23:41 +00:00
Matt Corallo
eec4c66ef6 Fixup dir structure 2014-01-22 03:28:35 +00:00
Matt Corallo
4595ad0fc4 moar stuff 2014-01-17 01:08:47 -05:00
Matt Corallo
42de35dd72 Random fixes, stuff 2014-01-17 01:08:33 -05:00
Matt Corallo
136da2894c Entirely untested plane work. 2014-01-15 02:46:05 -05:00
Matt Corallo
265ae82953 (potentially) working device object storage 2014-01-12 15:52:58 -10:00
Matt Corallo
6ded33ae48 Badge UI 2014-01-12 04:42:05 -10:00
Matt Corallo
41866cee95 Working background push. 2014-01-12 04:27:11 -10:00
Matt Corallo
b4ab726727 Missing background.html 2014-01-12 04:07:30 -10:00
Matt Corallo
f4755cb4b1 Updates 2014-01-12 04:07:13 -10:00
Matt Corallo
7e811c2855 Working registration 2014-01-11 22:49:46 -10:00
Matt Corallo
aa8fe6f9d0 Fix MAC 2014-01-11 21:42:41 -10:00
Matt Corallo
094ee4e95c rm useless thing 2014-01-11 21:32:45 -10:00
Matt Corallo
2427b73057 Untested Code 2014-01-11 21:32:13 -10:00
Matt Corallo
8ad510e00e Minor tweaks and first step towards websocket 2014-01-10 21:58:58 -10:00
Matt Corallo
a25cf5f176 Initial Checkin 2014-01-09 21:48:05 -10:00