diff options
author | Linus Nordberg <linus@nordu.net> | 2016-01-19 17:22:26 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-08-18 14:46:39 +0200 |
commit | 85f4c44d69c1a5a9ec71c64c9b0a6f92bfefb7e4 (patch) | |
tree | 5e9c307fd5a9638da422307e66efad674fb8e299 /src/sign.erl | |
parent | 1fc69034f8b794a444e79688126eb0d6d87750a1 (diff) |
Add compatibility layer for digging around in non-public data structures.
Diffstat (limited to 'src/sign.erl')
-rw-r--r-- | src/sign.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sign.erl b/src/sign.erl index ced218a..2c55429 100644 --- a/src/sign.erl +++ b/src/sign.erl @@ -92,8 +92,7 @@ read_keyfile_ec_logid(KeyFile) -> pem_entry_decode({'SubjectPublicKeyInfo', Der, _}) -> SPKI = public_key:der_decode('SubjectPublicKeyInfo', Der), - #'SubjectPublicKeyInfo'{subjectPublicKey = {_, Octets}, - algorithm = Algorithm} = SPKI, + {Octets, Algorithm} = plop_compat:unpack_spki(SPKI), #'AlgorithmIdentifier'{parameters = ECParams} = Algorithm, Params = public_key:der_decode('EcpkParameters', ECParams), Point = #'ECPoint'{point = Octets}, |