summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c_src/hsmhelper.h5
-rw-r--r--c_src/permdb.c2
-rw-r--r--c_src/permdb.h2
-rw-r--r--c_src/permdbport.c2
-rw-r--r--c_src/permdbtest.py3
-rw-r--r--src/atomic.erl8
-rw-r--r--src/db.erl2
-rw-r--r--src/frontend.erl2
-rw-r--r--src/fsyncport.erl2
-rw-r--r--src/index.erl2
-rw-r--r--src/permdb.erl2
-rw-r--r--src/plop.erl2
-rw-r--r--src/plop.hrl2
-rw-r--r--src/plop_app.erl2
-rw-r--r--src/plop_compat.erl3
-rw-r--r--src/sign.erl2
-rw-r--r--src/timeouts.hrl2
-rw-r--r--src/util.erl2
18 files changed, 32 insertions, 15 deletions
diff --git a/c_src/hsmhelper.h b/c_src/hsmhelper.h
index e8e8699..4099906 100644
--- a/c_src/hsmhelper.h
+++ b/c_src/hsmhelper.h
@@ -1,3 +1,8 @@
+/*
+ * Copyright (c) 2015, NORDUnet A/S.
+ * See LICENSE for licensing information.
+ */
+
#ifndef HSMHELPER_H
#define HSMHELPER_H
diff --git a/c_src/permdb.c b/c_src/permdb.c
index b5784d5..6117ff6 100644
--- a/c_src/permdb.c
+++ b/c_src/permdb.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015,2016, NORDUnet A/S.
+ * Copyright (c) 2015-2016, NORDUnet A/S.
* See LICENSE for licensing information.
*/
diff --git a/c_src/permdb.h b/c_src/permdb.h
index 4625a7b..314b873 100644
--- a/c_src/permdb.h
+++ b/c_src/permdb.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, NORDUnet A/S.
+ * Copyright (c) 2015-2016, NORDUnet A/S.
* See LICENSE for licensing information.
*/
diff --git a/c_src/permdbport.c b/c_src/permdbport.c
index 1db6df7..01e5859 100644
--- a/c_src/permdbport.c
+++ b/c_src/permdbport.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, NORDUnet A/S.
+ * Copyright (c) 2015-2016, NORDUnet A/S.
* See LICENSE for licensing information.
*/
diff --git a/c_src/permdbtest.py b/c_src/permdbtest.py
index 58debe7..7059bc5 100644
--- a/c_src/permdbtest.py
+++ b/c_src/permdbtest.py
@@ -1,3 +1,6 @@
+# Copyright (c) 2016, NORDUnet A/S.
+# See LICENSE for licensing information.
+
import argparse
import struct
import sys
diff --git a/src/atomic.erl b/src/atomic.erl
index 36fba81..580fd17 100644
--- a/src/atomic.erl
+++ b/src/atomic.erl
@@ -2,7 +2,7 @@
%%% See LICENSE for licensing information.
-module(atomic).
--export([replacefile/2, readfile/1]).
+-export([replacefile/2, readfile/1, openfile/2, readline/1]).
-spec replacefile(string(), binary()) -> ok.
replacefile(Path, Content) ->
@@ -20,3 +20,9 @@ readfile(Path) ->
{error, Error} ->
util:exit_with_error(readfile, Error, "Error reading file")
end.
+
+openfile(Path, Modes) ->
+ file:open(Path, Modes).
+
+readline(IoDevice) ->
+ file:read_line(IoDevice).
diff --git a/src/db.erl b/src/db.erl
index bf17e96..956679f 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(db).
diff --git a/src/frontend.erl b/src/frontend.erl
index a3ea885..e4d8e40 100644
--- a/src/frontend.erl
+++ b/src/frontend.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
%%% @doc Frontend node API
diff --git a/src/fsyncport.erl b/src/fsyncport.erl
index f6a8ae3..55d21ff 100644
--- a/src/fsyncport.erl
+++ b/src/fsyncport.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
+%%% Copyright (c) 2014-2015, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(fsyncport).
diff --git a/src/index.erl b/src/index.erl
index 5fe1dd6..bb9a7c9 100644
--- a/src/index.erl
+++ b/src/index.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
%% Implements an interface to a file pair (basename and
diff --git a/src/permdb.erl b/src/permdb.erl
index ba9fd72..0a1765e 100644
--- a/src/permdb.erl
+++ b/src/permdb.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2015, NORDUnet A/S.
+%%% Copyright (c) 2015-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(permdb).
diff --git a/src/plop.erl b/src/plop.erl
index 3c2b8a5..4ad0b98 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
%%%
%%% @doc Server holding log entries in a database and hashes in a
diff --git a/src/plop.hrl b/src/plop.hrl
index e388b6f..9737743 100644
--- a/src/plop.hrl
+++ b/src/plop.hrl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
+%%% Copyright (c) 2014,2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
%%% Plop data structures. Heavily based on RFC 6962. Some are for
diff --git a/src/plop_app.erl b/src/plop_app.erl
index 721623c..12f52ee 100644
--- a/src/plop_app.erl
+++ b/src/plop_app.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(plop_app).
diff --git a/src/plop_compat.erl b/src/plop_compat.erl
index 7466cbc..4c212de 100644
--- a/src/plop_compat.erl
+++ b/src/plop_compat.erl
@@ -1,3 +1,6 @@
+%%% Copyright (c) 2016, NORDUnet A/S.
+%%% See LICENSE for licensing information.
+
-module(plop_compat).
-export([unpack_spki/1, timestamp/0]).
-include_lib("public_key/include/public_key.hrl").
diff --git a/src/sign.erl b/src/sign.erl
index 2c55429..b656f8e 100644
--- a/src/sign.erl
+++ b/src/sign.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014-2015, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
%%%
%%% @doc Signing service
diff --git a/src/timeouts.hrl b/src/timeouts.hrl
index 495ea90..2c2b626 100644
--- a/src/timeouts.hrl
+++ b/src/timeouts.hrl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
+%%% Copyright (c) 2014-2015, NORDUnet A/S.
%%% See LICENSE for licensing information.
-define(SYNC_INDEXFORHASH_TIMEOUT, 300000).
diff --git a/src/util.erl b/src/util.erl
index 234b040..206bdd3 100644
--- a/src/util.erl
+++ b/src/util.erl
@@ -1,4 +1,4 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
+%%% Copyright (c) 2014-2016, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(util).