Commit graph

2738 commits

Author SHA1 Message Date
Matt Corallo
01c4f3dd56 Fix ALL the things! 2014-05-04 02:21:31 -04:00
Matt Corallo
d213cb0598 I like stack traces, also, fix identity key bit fiddle crap 2014-05-04 02:21:31 -04:00
Matt Corallo
705f8ce818 generic-ize 2014-05-04 02:21:31 -04:00
Matt Corallo
87c19c0c94 Another step forward 2014-05-04 02:21:31 -04:00
Ventero
3d7db4dbc3 Correctly extract string data for password.
btoa expects a string argument, so when passing it the ArrayBuffer
object returned by getRandomBytes(), it's converted to a string by
calling .toString() on it. This always results in "[object ArrayBuffer]",
effectively resulting in a completely non-random password.
2014-04-17 15:56:50 +02:00
Matt Corallo
cf79b41cc4 Merge pull request #8 from liliakai/master
Fix click handler
2014-04-09 02:07:28 -04:00
lilia
68027dadd4 Fix click handler
var i was being bound in the closure of this click handler, then
incremented by the for loop, such that its value was 1 by the time the
handler was called, so we were grabbing the message body from, e.g.
$("#input1") when we wanted $("#input0").
2014-04-08 23:03:34 -07:00
Matt Corallo
d56c3e1051 Add bit for !identityKey and commit wip test-cases 2014-04-07 13:11:01 -04:00
Matt Corallo
244aa8df92 Fix NaCL priv calc code 2014-04-07 13:11:01 -04:00
lilia
984a76eeb1 Fix crashing send button
destinations is dead. all hail group.members.
2014-04-06 14:26:38 -07:00
lilia
49cdf04065 Work on message styling
Replicates some styles from the android app.
2014-04-06 14:26:09 -07:00
Matt Corallo
e492aae172 Fix popup refreshing on send 2014-04-04 05:50:46 -04:00
Matt Corallo
732f9ac089 ping server to keep connection open 2014-04-04 04:47:04 -04:00
lilia
a67ab3a46f Make popup a little nicer to look at
Also add a little auto-suggestion contacts list. For now it just
contains your own number.
2014-04-02 23:11:34 -07:00
Matt Corallo
2ae5628122 Send-to-self works =D 2014-03-26 15:05:09 -04:00
Matt Corallo
136a8941c1 Things:
* key API changes moxie made because he disliked the other API
 * remove atmosphere
 * Fix some bugs in the send path, update for new send API
 * Send HTML
2014-03-25 15:27:19 -04:00
Matt Corallo
000a5e1440 Fix up a few things so registration works 2014-03-23 13:19:53 -04:00
Matt Corallo
832daf54db tabstabstabstabstabs 2014-03-22 18:45:01 -04: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
1c20dba67f Merge pull request #2 from liliakai/master
Make booleans stringable
2014-03-11 11:13:34 -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
fee6a69083 Optional curve25519 in js 2014-03-09 20:32:00 -04: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
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
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