This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: js2; js2-basic-offset: 2; indent-tabs-mode: nil; -*- */ | |
/* ***** BEGIN LICENSE BLOCK ***** | |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
* | |
* The contents of this file are subject to the Mozilla Public License Version | |
* 1.1 (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* http://www.mozilla.org/MPL/ | |
* | |
* Software distributed under the License is distributed on an "AS IS" basis, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Difference between Container Encryption and Item Encryption | |
// (Short answer: Item Encryption & decryption is identical to container encryoption and decryoption, just 1 step & simpler with no diffs, etc) | |
// Containers Encryption: | |
// https://github.com/SpiderOak/crypton/blob/a7e6a76f0c099ef2762c27f85f474bfb1c62727b/client/src/session.js#L663-L699 | |
var selfPeer = new crypton.Peer({ | |
session: this, | |
pubKey: this.account.pubKey, | |
signKeyPub: this.account.signKeyPub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then | |
// use window.btoa' step. According to my tests, this appears to be a faster approach: | |
// http://jsperf.com/encoding-xhr-image-data/5 | |
function base64ArrayBuffer(arrayBuffer) { | |
var base64 = '' | |
var encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
var bytes = new Uint8Array(arrayBuffer) | |
var byteLength = bytes.byteLength |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RecyclingDataCollector(){} | |
RecyclingDataCollector.prototype = { | |
collectWeight: function _collectWeight(type, weight, max) | |
{ | |
var err; | |
if (!weight || !type) { | |
error("Weight and Type are required args"); | |
} | |
var result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ***** BEGIN LICENSE BLOCK ***** | |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
* | |
* The contents of this file are subject to the Mozilla Public License Version | |
* 1.1 (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* http://www.mozilla.org/MPL/ | |
* | |
* Software distributed under the License is distributed on an "AS IS" basis, | |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: | |
Date/Time: | |
Kloak Version: | |
1. Install Kloak from Apple Test Flight | |
* Bugs, Problems: | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/928a5500234abb5db508ba07b1d2f6c385fe8d19:server/lib/stores/postgres/sql/setup.sql b/HEAD:server/lib/stores/postgres/sql/setup.sql | |
index ed69e77..1091725 100644 | |
--- a/928a5500234abb5db508ba07b1d2f6c385fe8d19:server/lib/stores/postgres/sql/setup.sql | |
+++ b/HEAD:server/lib/stores/postgres/sql/setup.sql | |
@@ -620,4 +620,165 @@ create unique index transaction_delete_message_msg_id_idx | |
on transaction_delete_message | |
(transaction_id, message_id); | |
+ | |
+create table item ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin; | |
create table item ( | |
item_id int8 not null primary key default nextval('version_identifier'), | |
account_id int8 not null references account, | |
name_hmac bytea not null unique, | |
creation_time timestamp not null default current_timestamp, | |
modified_time timestamp not null default current_timestamp, | |
deletion_time timestamp, | |
value bytea, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/security/manager/ssl/public/Makefile.in b/security/manager/ssl/public/Makefile.in | |
index 07eedf7..4269d53 100644 | |
--- a/security/manager/ssl/public/Makefile.in | |
+++ b/security/manager/ssl/public/Makefile.in | |
@@ -102,6 +102,7 @@ XPIDLSRCS = \ | |
nsIKeyModule.idl \ | |
nsIProtectedAuthThread.idl \ | |
nsIDataSignatureVerifier.idl \ | |
+ nsINACL.idl \ | |
$(NULL) |