diff options
author | Magnus Ahltorp <map@kth.se> | 2017-03-05 15:30:22 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-03-08 10:56:26 +0100 |
commit | cb8419bbfb141a365012a4654303efe1f7ab3d73 (patch) | |
tree | 00f6f96925f24cf9f2f42a17d283ba299cfd3c00 | |
parent | 15b373e60754e928c40bb2f7b417094312560549 (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(). |