diff options
author | Magnus Ahltorp <map@kth.se> | 2017-03-05 15:30:22 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2017-03-05 15:33:21 +0100 |
commit | 7a8968949cc07aec3be34dfe73f15581f71aa323 (patch) | |
tree | df306188fb281568d334bf8fcf52b06127769f43 | |
parent | c3811a694e3c16836759ae6c05ded0af2a8b972b (diff) |
Support for Erlang 19
-rw-r--r-- | src/plop_compat.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plop_compat.erl b/src/plop_compat.erl index 4c212de..9a98e3d 100644 --- a/src/plop_compat.erl +++ b/src/plop_compat.erl @@ -22,6 +22,10 @@ unpack_spki("17", SPKI) -> unpack_spki("18", SPKI) -> #'SubjectPublicKeyInfo'{subjectPublicKey = Octets, algorithm = Algorithm} = SPKI, + {Octets, Algorithm}; +unpack_spki("19", SPKI) -> + #'SubjectPublicKeyInfo'{subjectPublicKey = Octets, + algorithm = Algorithm} = SPKI, {Octets, Algorithm}. %% <=R17: now/0, >=R18 timestamp/0 @@ -30,4 +34,6 @@ timestamp("R16" ++ _) -> timestamp("17") -> erlang:now(); timestamp("18") -> + erlang:timestamp(); +timestamp("19") -> erlang:timestamp(). |